WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] posts vs. pages in YARPP (4 posts)

  1. mee213
    Member
    Posted 6 years ago #

    Is there a way to exclude Pages and only include Posts in the related_posts() function of YARPP? Some of my static pages are coming up in the related posts lists.

  2. @mee213 Look for a version which is no longer post_type-agnostic vern soon...

  3. I just posted YARPP 1.1, related_posts() by default only will pick out posts... if you want pages, you can use related_pages(). See the documentation for more details.

    Let me know if things work as expected.

    mitcho

  4. mee213
    Member
    Posted 6 years ago #

    yes beautifully, thanks.

Topic Closed

This topic has been closed to new replies.

About this Topic