Forums

[Plugin: Yet Another Related Posts Plugin] How use tempalte with php (1 post)

  1. ManUtopiK
    Member
    Posted 2 years ago #

    I would like use many differents templates with yarpp.
    I moved all templates on my theme and it's working.
    When I write :
    <?php get_template_part('yarpp-template-example'); ?>
    I got error.

    I tried to do that
    <?php related_posts(array('use_template' => 'true', 'template_file' => 'yarpp-template-example')); ?>
    but it's do nothing particular and use the default template.

    How can I do ?
    Thanks.

Topic Closed

This topic has been closed to new replies.

About this Topic