|
#1
Jan 10, 2013, 08:50 PM
|
|
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
Jan 11, 2013, 03:50 AM
|
|
|
|
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
Jan 11, 2013, 02:51 PM
|
|
To make it easier for the customer.
|
#4
Jan 11, 2013, 02:56 PM
|
|
|
|
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
Jan 14, 2013, 11: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?
|
#6
Jan 14, 2013, 11: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.
|
#7
Jan 14, 2013, 12:26 PM
|
|
|
|
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 12:29 PM.
|
#8
Jan 14, 2013, 05: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/
Last edited by johnnyinstereo; Jan 14, 2013 at 05:38 PM.
Reason: Left out a /
|
#9
Jan 14, 2013, 06:04 PM
|
|
|
|
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 06:06 PM.
|
#10
Jan 14, 2013, 06:54 PM
|
|
What code in the index.php file would be comparable to this bit of code?
Code:
<?php get_template_part( 'content', 'single' ); ?>
|
#11
Jan 14, 2013, 07:28 PM
|
|
I took the single.php file from the twentyten theme. Thats working so far.
|
|