Tell us what you are trying to do?
I have a custom function [get_person_id] which holds a value which I want to use in a views query filter to compare whether it is the same as a custom field value
In the enclosed screenshot you see my query filter.
However, the view brings no results (but there are matching records)
That does not work.
The filter as you set it will look for the value "[get_person_id]" (as constant), and it will look for it in a Custom Field where you store numeric values, as it seems.
You can not build queries like this, passing a Custom ShortCode in the value to look for.
In that field, you should input the actual value you want to find
What you can do, is set to search in a "shortcode attribute".
Then, insert the View anywhere, and pass your own custom shortcode as the value of the ShortCode attribute of the View you insert.
This will then filter the results by the value you send from your Custom ShortCode to the View Query, thru the ShortCode attribute of Views.
Hi Beda!
Unfortunately I am not a very good programmer
How and where in the view do I "pass my own custom shortcode as the value of the ShortCode attribute"
Hi Beda!
I found the solution in the meantime.
Thank you for your support - it brought me on the right path