Home › Forums › ACF PRO › 2nd page based off of data on first page › Reply To: 2nd page based off of data on first page
As beee said everything I used is above.
The functions.php I used was exactly as listed above.
For the template here is my version with the actual template code removed:
<?php
/*
Template Name: Property Page
*/
get_header();
if ( get_query_var( 'subpage' ) ) {
// if ?subpage=flyer is used, load the content for flyer-1
?>
<?php the_post(); ?>
<!-- ==================== -->
<!-- flyer/subpage code here -->
<!-- ==================== -->
<?php
} else {
?>
<!-- ==================== -->
<!-- main page code here -->
<!-- ==================== -->
<?php
while ( have_posts() ) : the_post();
the_content();
endwhile; // End of the loop.
?>
<?php get_footer(); ?>
<!-- ==================== -->
<!-- end landing page section -->
<!-- ==================== -->
<?php
}//end else
?>
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.