Forums

[Plugin: Yet Another Related Posts Plugin] Can this work outside of the loop? (5 posts)

  1. ashbryant
    Member
    Posted 3 years ago #

    Hi I would like to use this plug-in, but would need to use it outside of the loop inside a footer area, that would appear on every page / post of the site.

    Can anyone tell me how to do this?

  2. There unfortunately is no good way to do this.

    If you have strong PHP experience, you could play around with the templating feature to put the data from the related posts into a global variable during the template and then output it later in the page construction... but I've never tried that and there may be some unintended consequences with that.

  3. ashbryant
    Member
    Posted 3 years ago #

    Not sure where to start with that. Thanks anyway.

  4. ashbryant
    Member
    Posted 3 years ago #

    Managed to get it to work. made a function from within the loop and then called on that function from outside the loop. Seems to be working.

  5. ashbryant
    Member
    Posted 3 years ago #

    Scratch that. It's not working. just out putting the hard coded html and nothing from the query.

Topic Closed

This topic has been closed to new replies.

About this Topic