Home Forums ACF PRO pages with links


pages with links

  • Welcome!

    I want to display the names of the pages with links

    The output is a link without a title page

    I use the following code

    $stati_children = new WP_Query(array(
      'post_type' => 'page',
      'post_parent' => get_the_ID(14)
    <?php	if($stati_children->have_posts()) :
      while($stati_children->have_posts()): $stati_children->the_post();
      echo '<div class="item"><img src="'.get_field("foto_doct").'">';
      echo '<div class="name"><span>'.get_field("doct_fam").'</span>'.get_field("doct_imot").'</div>';
      echo '<div class="tags"><a href="'.the_field("doct_servis").'"></a></div>';
      echo '<div class="clinic">'.get_field("doct_arb").'</div></div>';
      endif; wp_reset_query();					

    Prompt, how to change it to instead link displays the page title ?


  • Hi @odyssey3080

    Could you please share the JSON or XML export file of your field group so I can check your setup?

    Thanks 🙂

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

The topic ‘pages with links’ is closed to new replies.