WordPress.org

Forums

Special Recent Posts
Maximum number of posts displayed (1 post)

  1. rachknight
    Member
    Posted 1 year ago #

    Hi all
    You've said to add this code to limit the amount of posts:

    <?php
    // Defining widget options.
    $args = array(
    'post_limit' => 5,
    'post_random' => 'yes',
    'category_include' => 3, 7
    );

    // Function call.
    special_recent_posts($args);
    ?>

    1) where do I add this code? which php file? and 2) If I want them in date order what should I change the post_random too, I presume No?

    Many thanks

    https://wordpress.org/plugins/special-recent-posts/

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Special Recent Posts
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags