hooks – Add content in cpt archive page


I am trying to add some custom content hooked into custom post type archive page but I can’t. I have already achieved it in single page with add_filter( ‘the_content’, ‘yourprefix_add_to_content’ ) and is_singular(cpt) and then append some content, but when I try to do something similar to archive page with is_post_type_archive(‘cpt’) it just doesn’t work. Which is the right hook and function to do that?

Bariock 2 years 2021-03-22T10:38:01-05:00 0 Answers 0 views 0

Leave an answer