Tag Info

Hot answers tagged

1

Use a date_query to get the 30 posts older than the current one. EXAMPLE (NOTE: The following is untested and requires Wordpress 3.7+ and PHP 5.4+) $current_post = get_queried_object(); $args = [ // Your arguments to pass, add as needed 'posts_per_page' => 30, 'date_query' => [ [ 'before' => strtotime( ...


1

Simple solution, use get_template_part(). For example: get_template_part( 'partials/footer' ); Which would get the footer.php inside the partials/ directory. Another example: get_template_part( 'partials/footer', 'home' ); Which would get the footer-home.php inside the partials/ directory. One more example: get_template_part( ...



Only top voted, non community-wiki answers of a minimum length are eligible