Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Atahualpa 3 Wordpress theme (http://forum.bytesforall.com/forumdisplay.php?f=2)
-   -   Create Multiple Pages with One Post (http://forum.bytesforall.com/showthread.php?t=19303)

johnnyinstereo Jan 10, 2013 07:50 PM

Create Multiple Pages with One Post
 
Hi,

I'm working on a website, and I have hit a snag in development. I'm using Ata 3.7.9. Basically what I'm trying to accomplish is already created in the old website that I am revamping. You can find the link here:

http://www.q1productions.com/RxPRand.../#.UO988OTO1v0


What I need to know how to do is put all of the conference data into one post, with only the main content visible, and make each piece of data navigatable through buttons on the side bar, which will dynamically create new pages from the original post. I have custom fields installed, but I just installed it, and I've yet to master that plug in.

Any help will be appreciated.

juggledad Jan 11, 2013 02:50 AM

Quote:

put all of the conference data into one post, with only the main content visible
Why? why not use multiple posts?

johnnyinstereo Jan 11, 2013 01:51 PM

To make it easier for the customer.

juggledad Jan 11, 2013 01:56 PM

why not create multiple pages

johnnyinstereo Jan 14, 2013 10:52 AM

Okay, I'll ask it another way. If I create a post with 5 Custom Fields, and I want to access the custom fields with buttons in a side bar like I was using the <!--nextpage--> tag, how would I go about this?

johnnyinstereo Jan 14, 2013 10:59 AM

I just need a bone thrown to me. I know how to display a custom field in a post, I just don't know how to create a link that creates a page based on that specific custom field.

juggledad Jan 14, 2013 11:26 AM

I have no idea how you do this. I would have to do a bunch of testing...no...actually I would create multiple pages that the sidebar links to.

you could build a custom menu with the link to the part of the post you want, but I think it would be a mess to maintain even for someone who knows what they are doing.

johnnyinstereo Jan 14, 2013 04:38 PM

Alrighty, I'm getting close. Had to create a custom post type with the custom fields. Found a website that walks you through it pretty good, but it has you making code changes to the single.php file, and Ata doesn't have it.

It's asking to change this code in the single.php file:
Code:

<?php get_template_part( 'content', 'single' ); ?>
With this:

Code:

<?php if (!$current_fp) {
        get_template_part( 'single', 'books-index' );
    } else if ($current_fp == 'reviews') {
        get_template_part( 'single', 'books-reviews' );
    } else if ($current_fp == 'author') {
        get_template_part( 'single', 'books-author' );
    } else if ($current_fp == 'purchase') {
        get_template_part( 'single', 'books-purchase' );
    }; ?>

Since that code doesn't exist, I'm at a standstill. Here's the link to the webpage

http://www.placementedge.com/blog/cr...ost-sub-pages/

juggledad Jan 14, 2013 05:04 PM

You can create a single.php - just make a copy of index.php and then put your code in. But you will have to make sure to document it and keep a backup cause next time someone does an automatic update, the file will be deleted....

johnnyinstereo Jan 14, 2013 05:54 PM

What code in the index.php file would be comparable to this bit of code?

Code:

<?php get_template_part( 'content', 'single' ); ?>

johnnyinstereo Jan 14, 2013 06:28 PM

I took the single.php file from the twentyten theme. Thats working so far.


All times are GMT -6. The time now is 07:56 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.