get_boundary_post WordPress Function

Description
Get the first or last post by publish date

Usage

<?php get_boundary_post( $in_same_cat, $excluded_categories, $start ); ?>

Parameters
$in_same_cat
(boolean) (optional) Whether post should be in same category.
Default: false
$excluded_categories
(string) (optional) Excluded categories IDs.
Default: ”
$start
(boolean) (optional) True to begin at the beginning
Default: true

Leave a Reply

Your email address will not be published. Required fields are marked *