“get_boundary_post WordPress” Code-Antworten

get_boundary_post WordPress

<?php
  // Link with title of latest post in current post’s category
   $latest= get_boundary_post(true, '', false, 'category');
   if (!empty($latest)) { foreach ($latest as $post) { ?>
   <a href="<?php echo the_permalink($post->ID); ?>"><?php echo $post->post_title; ?></a>
<?php }} ?>
Innocent Ibis

get_boundary_post WordPress

<?php
  // Link with title of first post in current post’s category
   $first= get_boundary_post(true, '', true, 'category');
   if (!empty($first)) { foreach ($first as $post) { ?>
   <a href="<?php echo the_permalink($post->ID); ?>"><?php echo $post->post_title; ?></a>
<?php }} ?>
Innocent Ibis

Ähnliche Antworten wie “get_boundary_post WordPress”

Fragen ähnlich wie “get_boundary_post WordPress”

Durchsuchen Sie beliebte Code-Antworten nach Sprache

Durchsuchen Sie andere Codesprachen