WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. senzalimiti
    Member
    Posted 9 months 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 9 months 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 9 months ago #

    Hi,

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

    -Tobias

  4. Vagenas Panagiotis
    Member
    Plugin Author

    Posted 9 months 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 9 months ago #

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

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.