WordPress.org

Ready to get started?Download WordPress

Forums

Contextual Related Posts
Different layout for post and pages (2 posts)

  1. External11
    Member
    Posted 2 years ago #

    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/

  2. Ajay
    Member
    Plugin Author

    Posted 2 years ago #

    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

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.