Hi, since my last succesfull meta query it has been quite a while.
If I am not totally wrong the selected posts and pages will be compared to certain values set in the meta query…
To start out small by filtering for a page X:
I have the following pages:
- Doctors
- Locations
- Cwicly
- Home
I am using the page home to display the query. The setup is in the image below.
The heading is set to the dynamic value of the Wordpress post title.
And the query outputs the expected pages cleanly.
I know that I could filter the pages by using the include/exclude post section, but this is a meta query test.
So, what should I do to simply filter for the page name?
I tried something like this:
Not sure if the reason that only home is displayed because I am on the page home but well… lets go to the next test.
Now let’s try to select a meta key? I tried here to filter for an post ID. the page home has the ID 10.
Not sure what I am missing…
But well in the next test I try to filter for a relation with ACF.
Here the ACF field which is placed in the ACF group Webdesign Settings
The group is located on the page home and has REST API set to on.
On the page home I selected the pages Home and Cwicly.
And now trying to meta query for that relation.
So, these are only three of the examples I tested from the 100+ today. I must do something fundamentally wrong here to not achieve any results.
I would really appreciate pointers here and would like to see a solution to at least for the ACF relation.