Support » Plugin: Yet Another Related Posts Plugin (YARPP) » Use other plugin´s shortcode in yarpp widget?

  • Resolved Achim

    (@ar7)


    Is it possible to use shortcodes from other plugins in the yarpp widget?

    THANK YOU 🙂

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Michael Nelson

    (@mnelson4)

    Hi @ar7! That’s an interesting question…

    Yes, you can use shortcodes inside the YARPP widget, but it will take a bit of coding (so if you’re not up to that, please ask your developer). Here’s how:

    * add a custom YARPP template (here’s a FAQ on how to do that). Feel free to use any of the example custom templates and modify it or make your own from scratch.
    * inside the custom template of your choice, use the other plugin’s shortcode by adding code like <?php echo do_shortcode('[otherpluginshortcode]');?> wherever you want
    * from the WordPress admin dashboard, under “Appearance” click on “Widgets”. On the YARPP widget, select “Custom” then find your custom template you want to use (screenshot)

    Does that make sense?

    Thread Starter Achim

    (@ar7)

    Hi Michael,

    that sounds quite good, thank you.
    Are you going to implement that function in YARPP soon?

    Plugin Author Michael Nelson

    (@mnelson4)

    Hi @ar7 I’m afraid I don’t understand.

    In my last comment I outlined how you could use a shortcode from another post in YARPP’s related content. I don’t see what function you’re hoping we will implement.

    What function were you hoping we would add?

    Thread Starter Achim

    (@ar7)

    Ok, that was really not so hard to do.

    Thank you – have a good time!

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.