[Plugin: Recent Posts] How to exclude pages in recent posts? (2 posts)

  1. mewing22
    Posted 7 years ago #

    How can you exclude pages from this recent posts widget? I only want to see recent posts, not recent pages.

  2. MichaelH
    Posted 7 years ago #

    The default template tag excludes pages

    <?php mdv_recent_posts(); ?>

    but if you have other settings then

    <?php mdv_recent_posts(10, '', '<br />', true, 5, false, false); ?>

    that last 'false' is to NOT display pages.

Topic Closed

This topic has been closed to new replies.

About this Topic