Home Forums General Issues Only certain ACF fields displaying


Only certain ACF fields displaying

  • I’m trying to help someone out. They have a custom template and the following is the code they are using:

    This is the following code:

    <?php $Searchbyfield= $_POST['Searchbyfield'];  echo $Searchbyfield; ?>
     <div class="content-wrapper">
      <div class="columns-wrapper">
        <div class="column1">
       <?php  $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;			
    		$args= array(   'post_type' => 'legacy_collection', 'showposts' => '50', 'orderby' => '$Searchbyfield',	'paged' => $paged );
    			while (have_posts()) : the_post(); ?>
               <p><a href="<?php the_permalink() ?>"><?php the_title(); ?></a><br />
               <?php the_field('date_of_publication'); ?>,  <?php the_field('language'); ?></p>       
    		<?php endwhile;?>

    The language field renders on the page, but not the “date_of_publication”. In the backend the field is populated.

    Page in question:

  • When I go to the page you posted I see the year listed. If that’s not what you want to be displayed check the field settings. The display value is determined there.

  • I don’t know what you are seeing, but I tested with every single browser I have and there is no date appearing. It’s not even in the View Source.


  • screenshot from the link you sent me, year and language listed below titles

  • Mine:

    I checked the site on my iPhone and the date appears there.

  • Turns out it was the font they insisted on using. I am sincerely recommending that they find a different font.

    BTW the font is Martel (standard).

  • and my browser was probably using the default “serif” because I don’t the font installed on my computer.

Viewing 7 posts - 1 through 7 (of 7 total)

The topic ‘Only certain ACF fields displaying’ is closed to new replies.