Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

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 }} ?>
Source by developer.wordpress.org #
 
PREVIOUS NEXT
Tagged: #wordpress
ADD COMMENT
Topic
Name
3+5 =