WordPress.org

Forums

Easy Related Posts
[resolved] Limit to post types (5 posts)

  1. senzalimiti
    Member
    Posted 1 year ago #

    Hi,

    I would like to limit the display of related posts to certain post types. Could you implement that feature?

    Background:
    I use Ninja Popups, a plugin to create popups. Popups are normal posts of type snp_popups. Unfortunately, therefore related posts are shown in the popup which makes no sense. It's possible to hardcode it not to show the related posts on a popup but I was confused about the Displayer() function in easy-related-posts/erp_display.php - the WP_Query object there is not the current post?

    Thanks.

    http://wordpress.org/plugins/easy-related-posts/

  2. Vagenas Panagiotis
    Member
    Plugin Author

    Posted 1 year ago #

    It is possible to be done with some coding but currently I am not planing to implement such feature. If you know coding I can add you to developers and help me with that.

    $erpDisplayC->Diplayer($argum) just renders the plugin content.

    Wp_Query obj is for related posts and not for the current post. The curent post is the $defcon var in $erpDisplayC->ConModifier($defcon).

    You will have to look at $erpDisplayC->ConModifier($defcon) which takes the default main area content and returns it with ERP content or not.

    To point you somewhere look in __construct of erpDisplayC class. There is a filter for the_content.

  3. senzalimiti
    Member
    Posted 1 year ago #

    Hi,

    are you interested in having this feature development sponsored? If so- how much?

    -Tobias

  4. Vagenas Panagiotis
    Member
    Plugin Author

    Posted 1 year ago #

    Sorry but this is a free plugin and it will stay so. If you need a plugin to do the job you can allways contact me at xdark dot eu at gmail dot com.

    I appreciate your interest anyway,
    Have a nice day.

  5. Vagenas Panagiotis
    Member
    Plugin Author

    Posted 1 year ago #

    I thing you can solve this now with putting posts under certain categories. This function is included in the new version.

Topic Closed

This topic has been closed to new replies.

About this Plugin

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

About this Topic

Tags

No tags yet.