bad practice in nimble_portfolio_register_taxonomies
-
Hi,
The way you are handling loop in nimble_portfolio_register_taxonomies is considered a bad practice and actually quite harmful to other plugins.
The main issue here is that in wp ‘backend’ wp_reset_query does not restore original query so you literally hijacking the post data object away hence other plugins are not functioning as expected. Here is the way to solve this issue (just replace this with your existing method):
https://gist.github.com/mch0lic/11232368
PS: You should only (and always) use wp_reset_query on front-end.
Cheers
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘bad practice in nimble_portfolio_register_taxonomies’ is closed to new replies.