Custom Template Page with ACF content not displayed in as homepage panel
-
Hi all,
I’m customizing TwentySeventeen thru a child theme to make a simple one-page site.
To make easier for the editors to insert/edit the contact data input, I created a custom page template namedtemplate-kontakt.php
which is retrieving and displaying values of some custom fields (ACF plugin).<?php /* * Template Name: Kontakt */ get_header(); ?> <div class="wrap"> <div id="primary" class="content-area"> <main id="main" class="site-main" role="main"> <?php while ( have_posts() ) : the_post(); ?> <div id="contact_wrapper"> <div id="contact_1"> <div> <i class="fas fa-map-marker-alt"></i> </div> <div> <?php echo the_field('kontakt-strasse'); ?> </div> <div> <?php echo the_field('kontakt-plz-ort'); ?> </div> </div> <div id="contact_2"> <div> <i class="fas fa-clock"></i> </div> <div> <?php echo the_field('kontakt-oeffnungstages'); ?> </div> <div> <?php echo the_field('kontakt-oeffnungszeit'); ?> </div> </div> <div id="contact_3"> <div> <i class="fas fa-comment-alt"></i> </div> <div> <i class="fas fa-phone"></i> <?php echo the_field('kontakt-telefon'); ?> </div> <div> <i class="far fa-envelope"></i> <?php echo the_field('kontakt-email'); ?> </div> </div> </div> <?php endwhile; // End of the loop. ?> </main><!-- #main --> </div><!-- #primary --> </div><!-- .wrap --> <?php get_footer();
Although the “Kontakt” page is displaying content correctly, the homepage panel is displaying the page title only.
Is there any other file to edit in order to get the page content visible in the corresponding homepage panel?The page I need help with: [log in to see the link]
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Custom Template Page with ACF content not displayed in as homepage panel’ is closed to new replies.