Wordpress Themes - WP Forum at BFA
Click Here To DONATE! Support the theme development, get more attention and additional benefits based on your donation level. Your forum name will be highlighted.

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme »

Create Multiple Pages with One Post


Build custom WP THEMES, without
coding.
Click here for THEMEFRAME

From the author of Atahualpa, the #1 most
downloaded (700,000+) theme @ wordpress.org
  #1  
Old Jan 10, 2013, 07:50 PM
johnnyinstereo
 
18 posts · Oct 2012
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.
  #2  
Old Jan 11, 2013, 02:50 AM
juggledad's Avatar
juggledad
 
22,170 posts · Mar 2009
OSX 10.8.5 WP 3.8.x Atahualpa 3.7.x Safari 6.x Firefox 25 XP
Quote:
put all of the conference data into one post, with only the main content visible
Why? why not use multiple posts?
__________________
Give a person a solution, you fix one issue, teach a person how to solve their problem you enable them forever.
Juggledad | Forum Moderator/Support
  #3  
Old Jan 11, 2013, 01:51 PM
johnnyinstereo
 
18 posts · Oct 2012
To make it easier for the customer.
  #4  
Old Jan 11, 2013, 01:56 PM
juggledad's Avatar
juggledad
 
22,170 posts · Mar 2009
OSX 10.8.5 WP 3.8.x Atahualpa 3.7.x Safari 6.x Firefox 25 XP
why not create multiple pages
__________________
Give a person a solution, you fix one issue, teach a person how to solve their problem you enable them forever.
Juggledad | Forum Moderator/Support
  #5  
Old Jan 14, 2013, 10:52 AM
johnnyinstereo
 
18 posts · Oct 2012
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?
  #6  
Old Jan 14, 2013, 10:59 AM
johnnyinstereo
 
18 posts · Oct 2012
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.
  #7  
Old Jan 14, 2013, 11:26 AM
juggledad's Avatar
juggledad
 
22,170 posts · Mar 2009
OSX 10.8.5 WP 3.8.x Atahualpa 3.7.x Safari 6.x Firefox 25 XP
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.
__________________
Give a person a solution, you fix one issue, teach a person how to solve their problem you enable them forever.
Juggledad | Forum Moderator/Support

Last edited by juggledad; Jan 14, 2013 at 11:29 AM.
  #8  
Old Jan 14, 2013, 04:38 PM
johnnyinstereo
 
18 posts · Oct 2012
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/

Last edited by johnnyinstereo; Jan 14, 2013 at 04:38 PM. Reason: Left out a /
  #9  
Old Jan 14, 2013, 05:04 PM
juggledad's Avatar
juggledad
 
22,170 posts · Mar 2009
OSX 10.8.5 WP 3.8.x Atahualpa 3.7.x Safari 6.x Firefox 25 XP
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....
__________________
Give a person a solution, you fix one issue, teach a person how to solve their problem you enable them forever.
Juggledad | Forum Moderator/Support

Last edited by juggledad; Jan 14, 2013 at 05:06 PM.
  #10  
Old Jan 14, 2013, 05:54 PM
johnnyinstereo
 
18 posts · Oct 2012
What code in the index.php file would be comparable to this bit of code?

Code:
<?php get_template_part( 'content', 'single' ); ?>
  #11  
Old Jan 14, 2013, 06:28 PM
johnnyinstereo
 
18 posts · Oct 2012
I took the single.php file from the twentyten theme. Thats working so far.

Bookmarks

Tags
custom fields, multi page posts

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
multiple pages but one post? garyaronov Montezuma Theme 2 Jan 3, 2013 04:58 AM
[SOLVED] Can I create multiple page layouts? tbaxter Atahualpa 3 Wordpress theme 6 May 8, 2012 04:25 PM
[SOLVED] Byline working in single post pages, but not multiple? denise Post-Kicker, -Byline & -Footer 2 Mar 17, 2010 03:35 PM
Adding signature under single post, not on frontpage /multiple-post page AnneTanne Post-Kicker, -Byline & -Footer 0 Aug 19, 2009 02:16 PM
multiple post pages michael close Forum How-To 3 Jun 23, 2009 07:03 PM


All times are GMT -6. The time now is 10:14 PM.


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