- This topic has 7 replies, 2 voices, and was last updated 3 years, 8 months ago by Tom.
August 28, 2018 at 4:21 pm #662766Jeff
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?August 28, 2018 at 6:56 pm #662850TomLead DeveloperLead Developer
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?August 29, 2018 at 2:04 am #663040Jeff
It’s actually a function from your support docs!
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?August 29, 2018 at 9:41 am #663502TomLead DeveloperLead DeveloperAugust 29, 2018 at 9:57 am #663528Jeff
Not decided yet.
Probably this one https://wprichsnippets.com/August 29, 2018 at 6:57 pm #663794TomLead DeveloperLead 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.August 30, 2018 at 1:45 am #664024Jeff
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 🤘August 30, 2018 at 8:51 am #664487
- You must be logged in to reply to this topic.