[Support request] Add review to Byline Meta

Home Forums Support [Support request] Add review to Byline Meta

Home Forums Support Add review to Byline Meta

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #662766
    Jeff

    Hi,

    I’d like to know if it’s possible/easy to recreate this type of byline

    GadgetFlow Byline with Editor Rating

    I want to add an editor rating like the one in the picture (from thegadgetflow.com website > https://thegadgetflow.com/portfolio/omen-gaming-headset/)

    Can I do this with a shortcode and a plugin like Rich Snippets?

    #662850
    Tom
    Lead Developer
    Lead Developer

    Hi there,

    You would likely need to use custom fields so you could input the rating on each post.

    Then you could use the filter you’re already using to add the avatar and add the custom field.

    Can you share the function you’re using for the avatar?

    #663040
    Jeff

    Hi Tom,

    It’s actually a function from your support docs!
    https://docs.generatepress.com/article/entry-meta-style/

    Do you think I would be able to use a plugin (and a shortcode) to do this,or do you think it’s best just to add a styled custom field?

    #663502
    Tom
    Lead Developer
    Lead Developer

    You would definitely be able to use a plugin. Do you have one in mind?

    #663528
    Jeff

    Not decided yet.

    Probably this one https://wprichsnippets.com/

    #663794
    Tom
    Lead Developer
    Lead Developer

    So depending on how that plugin outputs the reviews, you would find this line in your custom function:

    printf( ' <span class="byline">%1$s</span>',

    And add the stars before it.

    So if it’s a shortcode, it would look like this right above the above line:

    echo do_shortcode( '[the_reviews_shortcode'] );

    Then you’d likely need some CSS to style it, which I’d be happy to help with once it’s implemented.

    #664024
    Jeff

    Awesome. I just tested it out with a free review plugin and your solution worked straight away!

    I’m going to look into this a bit more and choose the right solution, then I can get back to you for the styling tips.

    You guys rock 🤘

    #664487
    Tom
    Lead Developer
    Lead Developer

    Awesome, glad I could help! 🙂

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