Home › Forums › General Issues › exclude my "custum field" for pages
I would exclude my “custom field” for all the pages of my WordPress
mais ça ne fonctionne pas
For categories I can exclude, but the pages I can not
Category is not equal to Blog
Post type is not equal to Page
it’s not ok
it always shows me my “custom field”
can you help me?
I also read here
when I excluded for pages it works,
but if I active for categories and pages
it works just and only for categories
I do not understand 🙁
I would like to exclude pages and category I chose to exclude
see pictures please
It would probably be better to select where you want the field group instead of where you don’t want it. But I’m not exactly sure where you want it to be.
Where do you want it to be shown? On “Posts”?
But you want to exclude a category?
is equal to
is not equal to
I would exclude my group of custom fields
on every page and also when I selected the category Blog
otherwise it can be displayed for the remains of categories
Your combination is logical is good
but when I selected a second condition that bug
but if I selected a condition that works, but not 2
you can see this video please
When I try to load that link I get a 503 error.
Can you post a screenshot here of the location rules you’re trying to set.
I would like to show my AFC
simply for categories except category blog
and exclude for pages
You are setting the location rules as “OR” in other words.
is equal to
is not equal to
A page does not have any category, so the second rule is never true.
See the screen shot for what your location settings should look like.
I did like on your screen, but it does not work
can you tell me if you see the test video?
No, the location rules you have set in your image and in the video are not they same as mine.
Please look closely at the two images that I am attaching and you will see the difference. The one named ‘incorrect.jpg
is the way you have it set up the one namedcorrect.jpg` is the way it should be set up.
you are right,
that works very well
it’s good now I understand we now cover: s
I had made the wrong rule
Thank you for your help 🙂
You must be logged in to reply to this topic.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We’re reaching out to our multilingual users to ask for help in translating ACF 6.1. Help make sure the latest features are available in your language here: https://t.co/TkEc2Exd6U— Advanced Custom Fields (@wp_acf) May 22, 2023
© 2023 Advanced Custom Fields.