I am trying to remove the post meta from only the category pages in my theme. I have this function to modify the post meta function, but don't know how I can add an if (is_category() argument in there to completely remove post meta.
/** Customize the post meta function */
add_filter( 'genesis_post_meta', 'post_meta_filter' );
function post_meta_filter($post_meta) {
if (!is_page()) {
$post_meta = '[post_categories]';
return $post_meta;
}}
I tried doing:
/** Customize the post meta function */
add_filter( 'genesis_post_meta', 'post_meta_filter' );
function post_meta_filter($post_meta) {
if (!is_page()) {
$post_meta = '[post_categories]';
elseif (is_category()) {
$post_meta = '';
return $post_meta;
}}}
But no luck, it doesn't work. Anything else?