WordPress.org

Support

Support » Plugins and Hacks » Yet Another Related Posts Plugin (YARPP) » manual placement with different template

manual placement with different template

  • Im trying to add the related posts to my page in 2 different places and Id like to use one template (with thumbs) in one area and another (just text) in the sidebar. Is there a way to configure the template options manually using the if related posts, show related posts code? Thanks in advance

Viewing 2 replies - 1 through 2 (of 2 total)
  • Is there a way to configure the template options manually using the if related posts, show related posts code?

    I’m actually running into this problem myself, embarrassingly enough…

    Please help?

    Plugin Author mitcho (Michael Yoshitaka Erlewine)

    @mitchoyoshitaka

    I’ve settled on how this will work in YARPP 3.4… it’s actually the same as what you can do now in 3.3. You’ll want to make a call like this:

    related_posts(array('use_template'=>true, 'template_file'=>'...'));

    where … is the filename of your template. The template file must be in your active theme’s directory.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘manual placement with different template’ is closed to new replies.
Skip to toolbar