• I want to allow archive description only for limited CPT, but I can’t figure out how to do it.

    Thanks in advance.

Viewing 1 replies (of 1 total)
  • Plugin Author mrwweb

    (@mrwweb)

    @chavo the ptad_post_type filter needs to return an array of post type slugs. Start by making sure you have the slugs right.

    Here’s an example using an anonymous function to only show the archive for the my-post-type post type:

    add_filter( 'ptad_post_types', function() {
    	return array( 'my-post-type' );
    });

    Hope that helps.

Viewing 1 replies (of 1 total)
  • The topic ‘ptad_post_types not working’ is closed to new replies.