Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- In Genesis, to customize post info (in the entry header typically) and entry meta (in the entry footer typically) genesis_post_info and genesis_post_meta filters can be used respectively. To display the current single Post’s author name (linked to author archive) [post_author_posts_link] shortcode is used inside the function hooked to these filters.
- This shortcode will only work when the hook is inside the loop. There could be times when you want to use genesis_post_info() and/or genesis_post_meta() in a function hooked to an action outside the loop – like genesis_after_header. In these cases [post_author_posts_link] will have blank output.
- Can you create a custom shortcode based on post_author_posts_link shortcode such that it works outside the loop?
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement