Post info or entry meta in the entry header in Genesis shows published date, author link, link to comments and edit link by default. What if you want to display post author's Twitter link in the post info?
In this article I share the code to
- load Dashicons (we are going to use its font icon to show Twitter icon before the Twitter link)
- use user_contactmethods filter to add Twitter field in User Profile page in WP admin
- create [twitter_link] shortcode which outputs post author's @twitterhandle linking to https://twitter.com/twitterhandle. If @ is entered by the user in his/her profile field, it will be stripped.
- use genesis_post_info filter to customize entry meta on single Post pages in the entry header so it displays author link, post date, twitter link and edit link.
functions.php:
To view the full content, please sign up for the membership.
Already a member? Log in below or here.