Archived

This topic is now archived and is closed to further replies.

  • 0

Resolved Custom Taxonomy In Metabar


Question

Posted · Report post

Hi,

I have created a custom taxonomy for the location. Is there an easy way to get this taxonomy in the metabar? The action map is not showing an action hook for the metabar.

Share this post


Link to post
Share on other sites

3 answers to this question

Posted · Report post

Sorry forgot to look at http://api.pagelines.com/hooks

Solution:


add_filter('pagelines_post_metabar', 'my_custom_metabar');

function my_custom_metabar($metabar){

$location = get_the_term_list( $post->ID, 'location', '', ', ', '' );

return $location.$metabar;

}

Share this post


Link to post
Share on other sites

Posted · Report post

The topic was marked as resolved.

Share this post


Link to post
Share on other sites

Posted · Report post

I am trying to do this and it does not return anything. My custom taxonomy is "contributor" and it is part of a a custom post type, "magazine". Would that have anything to do with the problem?

 

Share this post


Link to post
Share on other sites