wp parse_query not working with custom meta value

I ave faced the same issue when I was trying to filter custom-post-type with custom-field but I have resolved this issue in the following steps. Converted custom-field name from writer to _writer and then I have updated following code inside callback function of parse_query hook that I can add custom-field meta_query like $query->set( ‘meta_query’, array( … Read more

How to modify a taxonomy that’s already registered

register_taxonomy() is the tool for the job. From the Codex: This function adds or overwrites a taxonomy. One option would be to copy the register_taxonomy() $args and modify them. However, that would mean that any future changes to the original register_taxonomy() code would be overwritten. Therefore, at least in this case, it’s preferable to get … Read more