get boundary post wordpress

Solutions on MaxInterview for get boundary post wordpress by the best coders in the world

showing results for - "get boundary post wordpress"
Hadrien
23 Aug 2019
1<?php
2  // Link with title of latest post in current post’s category
3   $latest= get_boundary_post(true, '', false, 'category');
4   if (!empty($latest)) { foreach ($latest as $post) { ?>
5   <a href="<?php echo the_permalink($post->ID); ?>"><?php echo $post->post_title; ?></a>
6<?php }} ?>
7
Mariangel
22 May 2020
1<?php
2  // Link with title of first post in current post’s category
3   $first= get_boundary_post(true, '', true, 'category');
4   if (!empty($first)) { foreach ($first as $post) { ?>
5   <a href="<?php echo the_permalink($post->ID); ?>"><?php echo $post->post_title; ?></a>
6<?php }} ?>
7