Just check with $query->is_tag() rather than only is_tag() . So your updated code will be- function main_query_mods( $query ) { // check ...
確定! 回上一頁