Function.php code for Jetpack Related content with your plug in?
-
Dear author,
I have the opposite problem than some of these other complainers. I actually wanted and expected posts and pages being mixed up in the “related” section. But now the posts that are under blog category, and also in the same category than the pages, won’t show up either way in the related section. That blog post won’t come under the pages and the pages won’t appear under the post as I was expecting.
I use the Jetpack related content code for enabling that function for pages too which I found somewhere. Is this code now exclusively only for pages and therefore the blogging is ignored?
function marce_allow_pages_for_relatedposts( $enabled )
{
if ( is_page() ) {
$enabled = true;
}
return $enabled;
}
add_filter( ‘jetpack_relatedposts_filter_enabled_for_request’, ‘marce_allow_pages_for_relatedposts’ );-kind regards
- The topic ‘Function.php code for Jetpack Related content with your plug in?’ is closed to new replies.