The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

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

  1. External11
    Posted 4 years ago #


    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


  2. Ajay
    Plugin Author

    Posted 4 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

  • Contextual Related Posts
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.