Efficient Related Posts plugin instead of YARPP

Forums Forums SWIFT Themes Bug report and suggestions. Efficient Related Posts plugin instead of YARPP

This topic contains 3 replies, has 3 voices, and was last updated by  Golgi Alvarez 3 years, 1 month ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #15726

    lostworlds
    Spectator

    Is there any way to substitute the Efficient Related Posts plugin in place of Yet Another Related Posts Plugin? When I install Efficient Related Posts plugin it places the related posts at the end of my content but before the page numbers (on multi-page posts) and above the Related Posts/Share-Subscribe box. (Unlike YARPP which places the related posts :inside: the Related Posts/Share-Subscribe box.)

    I want Efficient Related Posts to load :inside: the Related Posts/Share-Subscribe box just as YARPP does now. How can I make this happen?

    Also, are there any compatibility issues with Efficient Related Posts plugin vs YARPP? It just seems I get better, faster results with Efficient Related Posts plugin vs. YARPP and thus would prefer to use it rather than YARPP.

    Hope this all makes sense. :)

    #20051

    lostworlds
    Spectator

    Never mind. Solved it. First I deactivated YARPP and actived Efficient Related Posts (ERP). Then I simply edited the theme file “related-posts-n-author-info.php” and completely removed this line:

    [PHP]< ?php if(function_exists('related_entries')):?>[/PHP]

    And replaced the following line:

    [PHP]< ?php related_entries();?>[/PHP]

    With this:

    [PHP]< ?php do_action('erp-show-related-posts', array('title'=>‘Related Posts:’, ‘num_to_display’=>5, ‘no_rp_text’=>’No Related Posts Found’)); ?>[/PHP]

    Works great. I also replaced the Social Media buttons with code from AddThis.com which lets me track my shares! Can check out my site here:

    Native American History, Art & Culture @ LostWorlds.org

    #20050

    Satish
    Keymaster

    cool, thanks for taking time to share the solution.

    #20052

    I did it so, but received the next error code:

    Parse error: syntax error, unexpected T_ENDIF in /home/mydatabase/public_html/wp-content/themes/SwiftPremium/includes/related-posts-n-author-info.php on line 13

    It seems thereĀ“s something more to do.

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.