Related posts on sidebar
-
Hi everyone,
Does any one know how to change position of related posts to the sidebar?
I added to my post template .php file the following code:
<?php echo do_shortcode([jetpack-related-posts]); ?>
and also added to functions.php the code:
function jetpackme_remove_rp() { if ( class_exists( 'Jetpack_RelatedPosts' ) ) { $jprp = Jetpack_RelatedPosts::init(); $callback = array( $jprp, 'filter_add_target_to_dom' ); remove_filter( 'the_content', $callback, 40 ); } } add_filter( 'wp', 'jetpackme_remove_rp', 20 );
But the page instead of showing the Related Posts on the sidebar, just says “Array”.
I’m not sure why.
Any help is really appreciated! Thanks
The page I need help with: [log in to see the link]
Viewing 12 replies - 1 through 12 (of 12 total)
Viewing 12 replies - 1 through 12 (of 12 total)
- The topic ‘Related posts on sidebar’ is closed to new replies.