Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Contributor dudo

    (@dudo)

    Hi nerkis,
    did you put that code inside the loop?

    Do you have a link to the site?

    Best,
    Dario

    Thread Starter MarcoP

    (@nerkis)

    Hello Dudo,

    I want to add stars rating to my home page or category only. Is it possible? I use Twenty Fourteen theme.

    Plugin Contributor dudo

    (@dudo)

    Yes, for the category just open file category.php and place it where you want (after the start the loop comment)

    Do the same for the index.php file.

    Best,
    Dario

    Thread Starter MarcoP

    (@nerkis)

    I tried to edit category.php and i have added code in it:

    <?php
    // Start the Loop.
    while ( have_posts() ) : the_post();
    echo do_shortcode( '[yasr_visitor_votes size="medium"]' );
    .
    .
    .
    .
    ?>

    But Stars rating doesn’t appear.

    Plugin Contributor dudo

    (@dudo)

    Uhm here everything seems fine…do you have a link? maybe an error could hide somewhere else

    Thread Starter MarcoP

    (@nerkis)

    Yes. Is it possible somehow to send you private? Because I don’t want to post my url here.

    Plugin Contributor dudo

    (@dudo)

    Send me an email to d DOT curvino AT gmail DOT com

    Thread Starter MarcoP

    (@nerkis)

    Hello Dudo,

    Thank you, i have wrote to your email.

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘How to use sortcode in custom template’ is closed to new replies.