• 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?

Viewing 4 replies - 1 through 4 (of 4 total)
  • 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.

    Thread Starter Ash

    (@ashbryant)

    Not sure where to start with that. Thanks anyway.

    Thread Starter Ash

    (@ashbryant)

    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.

    Thread Starter Ash

    (@ashbryant)

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Plugin: Yet Another Related Posts Plugin] Can this work outside of the loop?’ is closed to new replies.