Advertisement
bobcatou

Post Info code play

Jan 16th, 2016
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. //* Customize the post info function
  2. add_filter( 'genesis_post_info', 'sp_post_info_filter' );
  3. function sp_post_info_filter($post_info) {
  4. if ( !is_page() ) {
  5. $publication-date = types_render_field("pubdate", array("output"=>"html")); //My types custom field
  6. $authors = types_render_field("authors", array("output"=>"html")); //author custom taxonomy
  7. $post_info = '[pubdate] by [authors] [post_comments] [post_edit]';
  8. return $post_info;
  9. }}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement