125 reputation
5
bio website ineed.coffee
location Bolzano, Italy
age 27
visits member for 1 year, 10 months
seen Apr 18 '13 at 20:49

Daniel Graziotin is a PhD student in Computer Science at the Free University of Bozen-Bolzano. His research interests include human aspects in empirical software engineering with psychological measurements, Web engineering, and Open Science. He is Editorial Associate at the Journal of Open Research Software and the local coordinator of the OKF Open science Italia group. He is a member of the ACM, SIGSOFT, IEEE, and the IEEE Computer Society.

More info.


Jan
2
awarded  Supporter
Jan
2
comment Do not show a custom post if it belongs to a certain custom taxonomy
Cheers, you pointed me in the right direction. I hooked up the action woocommerce_before_single_product and put the 404 related code of this other answer: wordpress.stackexchange.com/a/27124/24742
Jan
2
accepted Do not show a custom post if it belongs to a certain custom taxonomy
Jan
2
comment Do not show a custom post if it belongs to a certain custom taxonomy
Yup, the modification is included: [tax_query] => Array ( [0] => Array ( [taxonomy] => product_cat [field] => name [terms] => Array ( [0] => plus ) [operator] => NOT IN ) ) ) However, Wordpress ignores it..
Jan
2
revised Do not show a custom post if it belongs to a certain custom taxonomy
added 114 characters in body
Jan
2
comment Do not show a custom post if it belongs to a certain custom taxonomy
I forgot to mention that I am developing this code in a Wordpress plugin, sorry!
Jan
2
comment Do not show a custom post if it belongs to a certain custom taxonomy
Thanks for all the edits. It is not a problem for me to return the $query parameter. However, aren't WP devs claiming it is not necessary? See codex.wordpress.org/Plugin_API/Action_Reference/… In any case, this is not the point of my question. Are you suggesting in your answer ("you can use the filter as outlined") that my filter should just work?
Jan
2
comment Do not show a custom post if it belongs to a certain custom taxonomy
Cheers, I corrected the typo from the snippet. Unfortunately, it was not the real issue as you suspected :) See the comment on my question: I already block at "archive" level. I am trying to block people accessing single pages. Using the slug does not solve the issue. Thanks for the info anyway, I will use slugs from now on!
Jan
2
awarded  Editor
Jan
2
revised Do not show a custom post if it belongs to a certain custom taxonomy
typo
Jan
2
comment Do not show a custom post if it belongs to a certain custom taxonomy
Yes Ed, I am trying this on a single post view. On the other hand, how can I assume that by filtering archive queries, nobody will ever reach the post by using the direct URL for it? This is what I am trying to achieve..hope it was clear
Jan
2
asked Do not show a custom post if it belongs to a certain custom taxonomy
Dec
21
awarded  Scholar
Dec
21
comment Redirect entire website to a single page
Brilliant. Works like a charm. Cheers and thank you for enhancing the quality of my question as well.
Dec
21
accepted Redirect entire website to a single page
Dec
20
awarded  Student
Dec
20
asked Redirect entire website to a single page
Dec
12
awarded  Autobiographer