I had your help with filtering based on a taxonomy but want to change it to filter out so it only shows those that have a custom property (named visibility created using toolset) set to public.
Here's what I got before, how should the new look (This is in a function using custom code called from the wpv_filter_query;
Thanks Changed out from using the custom code. But related to visibility, is there a way to make an entire content template not show based on a custom field value (basically if set to private then I want it only to show the content if it's the original author of the post). I know I can add a conditional block and move everything inside it but is there a better way?
Also, I added the visibility (changed to slab-visibility) on the edit and upload pages and it saves right but when you edit it always goes back to the default value. Any idea why?
I know I can add a conditional block and move everything inside it but is there a better way?
This is the way I am thinking of doing it, just add a conditional and add the information you don't want to appear inside it.
Also, I added the visibility (changed to slab-visibility) on the edit and upload pages and it saves right but when you edit it always goes back to the default value. Any idea why?
Not clear what you mean by this, is it that you changed the slug ? Let me know exactly the steps you did to make the change to slab-visibility.
Thanks,
Shane
The topic ‘[Closed] How to Filter Query based on custom property’ is closed to new replies.