-
honzapecenka
My guess. Only GB pro I had v2. Now everything is v2. I added Query V2.
Is this setup correct with the code listed for v2?
https://prnt.sc/cAsmmz9nZ1hs
It seems to me that it doesn’t take the selected_tag because it shows other posts.Just as an example. The tagged post is not supposed to be here.
https://prnt.sc/vic-5c-B6uqG -
Alvind
Can you provide a temporary admin login for you site for us to check the backend settings?
-
honzapecenka
Of course. PM
I’ll clarify that the target solution is to display only posts with the specified tag. -
The ACF taxonomy field selected
Label
as the taxonomy, is it the same as wp_tag in your language? can you confirm that’s correct?
https://app.screencast.com/JfFnQa0wn9e0rWith the PHP code, you should remove all parameters added to the query block, except posts per page.
And can you set the ACF field return format to object instead of ID?
-
honzapecenka
I have this options:
https://prnt.sc/Djn6GvtyaJ71I changed the ACF return format.
-
Ok now can you remove all parameters from the query block?
-
honzapecenka
-
Good, now can you change the Appearance of the
selected_tags
field to multi select instead of single select?
https://app.screencast.com/hzzvKp7jjlvbrThen you might need to re-assign the tag in the post editor, then the query should show the correct posts from the selected tag.
-
honzapecenka
Done. Unfortunately, this doesn’t work. It shows all posts.
Why can’t I have additional parameters in Query?
-
Why can’t I have additional parameters in Query?
Cause you don’t need them, and it will overlap with the codes, they might be overriding each other.
The PHP code was not active, I’ve activated it and it’s working now. Please check and let me know!
-
honzapecenka
It seems to work, but I need those other parameters like category, sorting… See screen.
There are three categories that are linked together thanks to the tags, but in order to display properly on the posts, I need the other parameters to be possible.
I understand this is complicated to explain and appreciate your help.
https://prnt.sc/GNVgEVg1BG3V -
Alvind
If you’re using a filter snippet to set up custom parameters, it is advised to include those parameters within the snippet as well to prevent future issues. What is the parameter you are looking to add to the Query Loop?
-
honzapecenka
https://prnt.sc/GNVgEVg1BG3V
Category, order And order by. -
I’m not sure category would work, but order and orderby maybe, you can have a try.
if not, then you need to add those to the PHP snippet as well.
-
honzapecenka
Yes, order and order by in the frontend seems to work.
Is it possible to create an ACF field with a category and make it similar to tags? In one code? -
so you want the posts to have both the tag and the category?
or you want the posts to have either the tag or the category?
- You must be logged in to reply to this topic.