• Hello World “press”,
    I made a one scrolling to anchor wordpress theme.
    I’ve include() my three pages on the index.php
    My problem is : the Adevenced Custom Fields works great on seperate pages but they are not showing with an include() on index.php
    Any idea ?
    Best

    <?php
    /*
     * Template Name: Modèle Page Info
     */
    ?>
    <?php while ( have_posts() ) : the_post(); ?>
    <a href="#info"></a>
    <section id="Info">
    	<section class="site-content">
    		<div id="wrapper-main" role="main">
    
    			<div id="ao-background-header"></div>
    			<div id="ao-header"></div>
    
    	       	<section id="wrapper-info">
    				<div id ="info" class="container">
    					<h1><?php the_field('titre_info');?></h1>
    					<p><?php the_field('paragraphe_info');?></p>
    				</div> <!-- .container -->
    			</section> <!-- #wrapper-info -->      
    
    		</div><!-- #wrapper-main -->
    	</section><!-- #site-content -->
    </section> <!-- #info -->
    <?php endwhile ?>
Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator keesiemeijer

    (@keesiemeijer)

    How do you include the file?

    Thread Starter nicoledude

    (@nicoledude)

    This is my home page with the three include pages.
    musique and image works well but info is not showing

    <?php
    /*
     * Template Name: Ao vision Index
     */
    ?>
    
    <?php get_header(); ?>
    
    <?php include ('page-info.php'); ?>
    <?php include ('page-musique.php'); ?>
    <?php include ('page-image.php'); ?>
    
    <?php get_footer(); ?>
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Advenced custom field not showing include()’ is closed to new replies.