Site logo

Archived topic

Display Category Custom Posttyp

3 replies · Started by Jens on August 6, 2021

Viewing posts 1–4 of 4

Hello,

the category of custom post type isn't display.
CPT : cool_timeline / Taxonomy : ctl-stories

I added in functions.php:

add_filter( 'generate_entry_meta_post_types', function( $types ) {
$types[] = 'cool_timeline';
return $types;
} );

add_filter( 'generate_footer_meta_post_types', function( $types ) {
$types[] = 'cool_timeline';
return $types;
} );

This works fine.

Then I use the hook generate_before_entry_title:
<?php echo generate_do_post_meta_item( 'ctl-stories' ); ?>

but nothing is show. Where is the mistake ?

Thank you very much. Also Thanks to Elvin. Your support is great.

Glad we could be of help

This archived topic is closed to new replies.