Show a text if the post has written by author user role in Wordpress

by Viktor Nagy   Last Updated October 12, 2019 05:08 AM

I search a PHP code what is show a certain text or html code on the post page when the post author is an author. (not admin or editor)

When the post author is an admin or editor then show nothing.


Related Questions

how to delete all users and posts based on 'user_meta'?

Updated December 19, 2016 08:03 AM

Unable to get specific value from post meta

Updated April 04, 2017 17:08 PM

Add postmeta to all blog posts

Updated September 26, 2018 18:08 PM

Meta query interfering with orderby relevance

Updated May 03, 2019 20:08 PM