Support » Plugin: Contextual Related Posts » [Plugin: Contextual Related Posts] Different layout for post and pages

  • External11

    (@external11)


    Hello,

    I have just installed your plugin on firm-guide.com/ and it is far the best in terms of displaying really related posts. Far better than YARPP. But my problem is that I want to use different template on posts and pages.

    Imagine on POSTS I want to show excerpts and want to list 5 related posts and on PAGES I want to display 3 related posts with NO excerpt.

    Any idea how to do this?

    Thank you

    http://wordpress.org/extend/plugins/contextual-related-posts/

Viewing 1 replies (of 1 total)
  • Plugin Author Ajay

    (@ajay)

    Thanks for the kind words. Unfortunately, there is no easy way to produce this except a different kind of manual install.

    You’ll first need to create a template in your theme for posts. Check http://codex.wordpress.org/Theme_Development#Template_Files_List for a list

    In single.php you need to use

    <?php echo ald_crp('is_widget=0&limit=5&show_excerpt=1'); ?>

    In page.php use:

    <?php echo ald_crp('is_widget=0&limit=3&show_excerpt=0'); ?>

    Let me know if this works for you

Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: Contextual Related Posts] Different layout for post and pages’ is closed to new replies.