Jump to content
manojgupta26

Related Post Plugin On Pageline Framework Doesn't Work

Recommended Posts

manojgupta26

I am  using Microkid's Related Posts (http://wordpress.org/extend/plugins/microkids-related-posts/and want to display the posts manually using shortcode. It seems pagelines doesn't support it.

 

I am calling following code (in red) in function using hooks. I tried two ways but it only shows

 

related_posts() or [related_posts]

 

Am I doing some silly mistake?

 

add_action('pagelines_loop_after_post_content', 'after_post_box');
function after_post_box() {
if (is_single()) { ?>
related_posts();
<?php }
}

 

 

 

 

add_action('pagelines_loop_after_post_content', 'after_post_box');
function after_post_box() {
if (is_single()) { ?>
<?php echo do_shortcode('[related_posts]'); ?>
<?php }
}

 

 

 
 

 

Share this post


Link to post
Share on other sites
Simon

your improperly opening and closing php tags

 

 

 

add_action('pagelines_loop_after_post_content', 'after_post_box');
function after_post_box() {
    if (is_single()) {
        related_posts();
   }
}

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×