Is it posible to selectively add ‘Related Posts’ to pages?
-
Hi there,
I’ve searched around but haven’t found the solution yet. If it’s not possible to do so easily, then it’s okay and it isn’t a problem. But if it is, it would be nice to know.
I would like to add ‘related posts‘ to a small minority of pages (currently, only one page out of a dozen). I don’t want the other Pages to appear as ‘Related Posts’. I only want posts (as opposed to pages) to appear among the ‘Related Posts’ search results. Even if the “Related Posts” is appearing on a page.
Also, I’m not looking for ‘Related Posts’ to appear by default on all pages. I want it to be disabled by default on pages and selectively include them via the
[jetpack-related-posts]
shortcode or adding something like:<?php if ( class_exists( 'Jetpack_RelatedPosts' ) ) { echo do_shortcode( '[jetpack-related-posts]' ); } ?>
to the page’s template.
In other words, I’m looking for the ability to selectively add “related posts” to a small minority Pages, with only posts appearing among the “Related Posts” search results. I hope I haven’t made a mess trying to explain myself. If so, sorry for that.
Is this something that has been solved before elsewhere I could look at?
Kind regards
- The topic ‘Is it posible to selectively add ‘Related Posts’ to pages?’ is closed to new replies.