Trying to decipher this code which is encoded with HTML Special Characters [closed]
Working code for you: // Set any Custom Post Type to be displayed on the archive.php and tag.php function category_tag_archives($wp_query) { if ($wp_query->get(‘category_name’) || $wp_query->get(‘cat’) || $wp_query->get(‘tag’)) { $wp_query->set(‘post_type’, ‘any’); } } add_action(‘pre_get_posts’, ‘category_tag_archives’);