Home Forums Front-end Issues Some fields are not showing up.


Some fields are not showing up.

  • Hi there,

    Just start using your awesome plugin! The only problem I can’t figure out is that some fields are not working in the front end. I just set the fields up in the WP-admin and requested the fields with the required codes.

    The website is:

    The fields <h2><?php get_field(‘titel_recensie’); ?></h2> and <?php get_field(‘tekst_recensie’); ?>
    are not showing up in the frontend. Only when i put them in the upper part of the website.

    Code of the website:

    ‘<?php /* Template Name: Front-template */

    <main id=”content”>

    <?php while ( have_posts() ) : the_post(); ?>

    <div id=”header_home”>

    <div id=”header_home_content”>
    <h2><?php the_field(‘header_titel’); ?></h2>
    <div id=”home_header_button_wrapper”>
    <div id=”home_header_button” class=”cta_button”><?php the_field(‘header_left_button’); ?></div>
    <div id=”home_header_button” class=”cta_button”><?php the_field(‘header_right_button’); ?>



    <div id=”home_services2″>

    <h2>Je kan me inschakelen voor:</h2>

    <div id=”home_services2_list”>

    <ul class=”home_services2_list1″ style=”list-style-image: url(‘/theme/css/icons/image-editor.png’);”>

  • Strategie
  • Nieuwsbrieven
  • Sales Funnel
  • Smartphonefotografie
  • <ul class=”home_services2_list2″ style=”list-style-image: url(‘/theme/css/icons/image-editor.png’);”>

  • Blogs Schrijven
  • Website teksten
  • Social media beheren
  • Social media advertising
  • </div>

    <div id=”home_blog_latest”>
    <h2>Mijn blog</h2>

    <?php the_field(‘titel_recensie’); ?>

    $args = array( ‘numberposts’ => 1 );
    $lastposts = get_posts( $args );
    foreach($lastposts as $post) : setup_postdata($post); ?>
    <div id=”home_blog_latest_wrapper”>
    <div id=”home_blog_latest_left”>

    /img/iphone_8plus.png” />
    ” />


    <div id=”home_blog_latest_right”>
    <h3>“><?php the_title(); ?></h3>
    <?php the_content(); ?>
    <?php endforeach; ?>

    <div id=”home_references” style=”background-image: url(‘<?php if( get_field(‘Achtergrond_recensie’) ): ?><?php the_field(‘image’); ?><?php endif; ?>’); height: 200px;”>
    <div class=”home_references_content”>
    <h2><?php get_field(‘titel_recensie’); ?></h2>
    <?php get_field(‘tekst_recensie’); ?>



    <div id=”home_instagram”>
    <?php echo do_shortcode( ‘[instagram-feed]’ ); ?>

    <?php endwhile; // end of the loop. ?>

    <?php get_footer(); ?>`

Viewing 1 post (of 1 total)

The topic ‘Some fields are not showing up.’ is closed to new replies.