WordPress taxonomy and archive custom class

Add another layer of condition to your is_archive() test, so that your archive class is only output when the other two are NOT true: function fotogruf_layout_class(){ if ( is_search() ) { echo $search_layout_class; } if ( (is_post_type_archive(‘gallery’) ) || ( taxonomy_exists(‘gallery_category’) ) ){ echo $gallery_layout_class; } if ( is_archive() ) { if ( ( !is_post_type_archive(‘gallery’) … Read more

What is the safe way to print tracking code / pixel code before tag or tag

It sounds like you’re trying to implement a general purpose field for users to enter any kind of tracking code/JS into. This approach gives users the most flexibility but it means that you are trusting them to put whatever JavaScript that they want into the header and footer. By default, users need the administrator or … Read more