Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

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

Create Multiple Pages with One Post


  #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
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
Quote:
put all of the conference data into one post, with only the main content visible
Why? why not use multiple posts?
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
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
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
why not create multiple pages
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
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
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
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.
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
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
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
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....
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
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



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 08:57 PM.


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