Welcome!
I want to display the names of the pages with links
The output is a link without a title page
https://yadi.sk/i/KGB6_3BLymGh5
I use the following code
<?php
$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>';
endwhile;
endif; wp_reset_query();
?>
https://yadi.sk/i/kNowzQ-eymGyx
Prompt, how to change it to instead link displays the page title ?
Thanks..
Hi @odyssey3080
Could you please share the JSON or XML export file of your field group so I can check your setup?
Thanks 🙂