Support » Plugins and Hacks » posts vs. pages in YARPP
9 years, 2 months 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.
@mee213 Look for a version which is no longer post_type-agnostic vern soon…
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.
yes beautifully, thanks.