WordPress.org

Ready to get started?Download WordPress

Forums

Easy Digital Downloads
[resolved] EDD Related Items using YARPP (Yet Another Related Posts Plugin) (8 posts)

  1. mcfilms
    Member
    Posted 1 year ago #

    Hi,

    I am helping my sister with her site. We are using EDD for digital downloads and throughout her pages and posts we are using YARPP to recommend similar items.

    We would like to also recommend digital products on these pages and even articles on some of the store pages. So I am looking to integrate YARPP. I saw a hint posted by Pippin at https://easydigitaldownloads.com/support/topic/related-posts-support/ that indicating making a change to the Author support code at https://easydigitaldownloads.com/docs/adding-author-support-to-downloads/ would allow YARPP to show up.

    Well, although the Author code change DOES work and allows me to select an author, if I change the single line to:
    $supports[] = 'yarpp_support';
    the related posts do not appear on the page.

    Are there any other steps to add related posts? Should I be looking for a different plug-in?

    http://wordpress.org/extend/plugins/easy-digital-downloads/

  2. Can you show me the exact code you're using?

  3. mcfilms
    Member
    Posted 1 year ago #

    My sub-theme of twentytwelve has a function.php file that has the following in it:

    <?php
    function pw_edd_add_author_support($supports) {
    	$supports[] = 'yarpp_support';
    	return $supports;
    }
    add_filter('edd_download_supports', 'pw_edd_add_author_support');

    I also tried to replace the two placed "author_support" appears with "yarpp_support" and that did not work either.

    Thanks for having a look.

  4. Try replacing yarpp_support with just yarpp.

  5. mcfilms
    Member
    Posted 1 year ago #

    I tried this:

    <?php
    function pw_edd_add_yarpp($supports) {
    	$supports[] = 'yarpp';
    	return $supports;
    }
    add_filter('edd_download_supports', 'pw_edd_add_yarpp');

    And there is no change.

    According to the thread at http://wordpress.org/support/topic/plugin-yet-another-related-posts-plugin-custom-post-type-support?replies=23 I should be able to do this, (since version 3.5). But it looks like I also need to set 'yarpp_support' => true

    I think the necessary php knowledge to re-wire YARPP to work with EDDs custom content types is a bit out of my reach.

  6. Hmm, I'm not quite sure on this one. I'll have to do some testing to figure out exactly what it needs, though it will be a few more days before I can test.

  7. I've tried to make this work as well but haven't succeeded. I'm sorry but you'll have to contact Mitcho (the YARRP developer) to ask if he can shed some light on it.

  8. mcfilms
    Member
    Posted 1 year ago #

    Thank you for the follow-up.

    We ended up using YARRP for most of the site and Easy Digital Downloads - Related Downloads for the EDD store. Although it probably isn't ideal to use two "related downloads" modules, at least the related downloads in the store lead to more product and not a blog post or a static page. So maybe it IS ideal to use two.

    If you're curious you can see it on the live site by visiting the store link at: http://papergardenprojects.com/

    Thank you!

    Jerry

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic