Advertisement
srikat

Untitled

Oct 4th, 2016
168
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. 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.
  2.  
  3. 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.
  4.  
  5. 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