Archived topic
Add review to Byline Meta
7 replies · Started by Jeff on August 28, 2018
Hi,
I'd like to know if it's possible/easy to recreate this type of byline

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?
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?
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?
You would definitely be able to use a plugin. Do you have one in mind?
Not decided yet.
Probably this one https://wprichsnippets.com/
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.
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 🤘
Awesome, glad I could help! :)