Custom post type custom taxonomy archive page name

If you need the archive index for a custom taxonomy, you would use taxonomy-{taxonomy}.php template file. So, if you’ve created a custom taxonomy, gallery-exhibitions, the archive index for this taxonomy would use the taxonomy-gallery-exhibitions.php template file. If you need the archive index for terms for your custom taxonomy, you would use taxonomy-{taxonomy}-{term}.php template file. So, … Read more

Filter the content from a post globally immediately after is fetched from the database

Inside get_posts() method of the WP_Query class (line 3769), you will find out this filter: $this->posts = apply_filters_ref_array( ‘the_posts’, array( $this->posts, &$this ) ); It’s the very first hook you can use to modify queried posts on both back-end and front-end. $this->posts is an array of queried posts so it’s easy to modify the content … Read more