WordPress.org

Ready to get started?Download WordPress

Forums

Yet Another Related Posts Plugin (YARPP)
[resolved] [Plugin: Yet Another Related Posts Plugin] Multiple Templates on the Same Page? (6 posts)

  1. gyutae
    Member
    Posted 2 years ago #

    Is it possible to use multiple YARPP templates on the same page? I'm looking to implement two instances of YARPP on the same page - one with thumbnails, and another in list form somewhere else. Is this possible? Perhaps using the manual related_posts() function?

    http://wordpress.org/extend/plugins/yet-another-related-posts-plugin/

  2. gyutae
    Member
    Posted 2 years ago #

    Also, in this old post (http://mitcho.com/blog/projects/yet-another-related-posts-plugin/), you list out the manual function that can override any options.

    It doesn't seem to work anymore. Is there a way to override options with the function or a template? I'm looking to implement 2 different instances of YARPP on the same page as I mentioned.

    Thanks!

  3. mitcho (Michael Yoshitaka Erlewine)
    Member
    Plugin Author

    Posted 2 years ago #

    The manual override of settings in the related_posts() indeed has changed its behavior over time... I'm thinking right now that in the next version of the plugin, 3.4, I may completely overhaul the signature of that function, but in a way which allows this type of change more easily. Keep your eyes posted for upcoming betas... the best way is by following @yarpp on twitter.

  4. gyutae
    Member
    Posted 2 years ago #

    Thanks - that would be great. I find it very limiting currently to not be able to manually override the settings with the function (i.e. can't implement more than once instance of Related Posts, only one template, can't dynamically change what's displayed based on the type of page, etc).

    Any idea on timeline for when we can expect that functionality?

  5. gyutae
    Member
    Posted 2 years ago #

    Hey mitcho,

    Is the custom function now available in YARPP 3.4b10 or YARPP Experiments? I tried updating but wasn't able to find anything.

    Also, I get this error when trying to activate the YARPP Experiments plugin:

    Parse error: syntax error, unexpected T_FUNCTION in /wp-content/plugins/yarpp-experiments/yarpp-experiments.php on line 301

  6. mitcho (Michael Yoshitaka Erlewine)
    Member
    Plugin Author

    Posted 2 years ago #

    Sorry about that, version 0.5 of YARPP Experiments fixes that bug.

    Manually overriding the settings with a function is now supported in YARPP 3.4. The "dingus" included with YARPP Experiments will show you how to do that.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic