Support » Plugin: Yasr - Yet Another Stars Rating » Only show stars on book reviews, not all posts

  • Resolved lucio7

    (@lucio7)


    Hello Dario (your name sounds Italian, BTW),

    I’d like to have the stars shown on my reviews, but not on all posts (I write book reviews and have my own posts).

    I’ve been trying different combos by enabling/disabling auto insert at both plugin and post level, but so far it’s either the stars are shown everywhere, or nowhere.

    Do you have any idea how to do that?

Viewing 4 replies - 1 through 4 (of 4 total)
  • P.S.: I’m aware of shortcodes, but I’m not a big fan. I didn’t find a way to center the stars using the shortcodes. And if one day I’ll delete the plugin, I’ll have to manually delete the shortcodes as well.

    Plugin Author dudo

    (@dudo)

    Hello Lucio, yep, I’m Italian 🙂

    It is not possible to use auto insert only for a certain category or CPT, at least not yet.

    If you have some coding skill you can insert it into the child theme, using the loop and echoing the shortcode only if the post or page is under the category you need

    Best,
    Dario

    Grande!

    I’ll keep it in English for future reference.

    Alright, I can ask some developers for help. Do you think it’s very complicated or most developer should be able to do it?

    So, just to be clear, I should set the plugin to insert it automatically everywhere, and then with the loop I should be able to limit the insertion to certain categories.
    Is that right?

    Thank you in advance and keep up the great work,
    Lucio

    Or, alternatively, is there a way to align the shortcode to the center of the page?

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.