• Resolved Snaggletooth

    (@snaggletooth)


    Hello,

    Just wondering if there is a way to use the plugin inside templates, not just per shortcode. The way the single post pages are designed do not allow for the ratings being inserted with the content.

    Also a second question: The ratings are for videos that will be shown on a landing page, listed as tiles. I tried to insert the ratings into a loop with the shortcode “[yasr_overall_rating size=”small”]”, but the code gets displayed as clear text. The problem could be that I am using the plugin “Custom Content Types”, although I think it’s rather looping back to my first question: the ratings need to be inserted through the template code…

    Thank you.

    https://wordpress.org/plugins/yet-another-stars-rating/

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

    (@dudo)

    Hi, YASR was build to work only in a post or page and only via shortcode, so it will no work in other ways, sorry!

    Best,
    Dario

    Thread Starter Snaggletooth

    (@snaggletooth)

    Too bad. Nice plugin otherwise.

    Snaggletooth, yeah…

    Is there a particular reason for It? If you don’t mind…

    Plugin Contributor dudo

    (@dudo)

    I made this plugin beacause I needed a plugin that could replace gd star rating on my website. I used it via shortcode so I built a plugin that could work via shortcode, just because it’s the only way that I needed.

    Hovewer, I made a little search and found this http://codex.wordpress.org/Function_Reference/do_shortcode

    I can’t try it right now, could work for your purpose?

    Have a nice day,
    Dario

    Hello, thank your for you good plug-in.
    I have question.
    This is text from validator micro data google.

    Item 1
    type: http://schema.org/aggregaterating
    property:
    ratingvalue: 4.4
    bestrating: /5
    ratingcount: – 5

    bestrating: /5 – this is good ?

    Plugin Contributor dudo

    (@dudo)

    of course not: in last version I did minor changes in snippet code and I’ve done a mistake. I’ve already fixed, this fix will be online in yasr 0.4.9

    Thank you

    Plugin Contributor dudo

    (@dudo)

    Update do 0.4.9. I just fixed this

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Using Yasr in template’ is closed to new replies.