NO BUG: Global/Query not working in component?

I created a global query loop A.
This works on the page for element B, and the results are 2. I can see my results fine.

In my component X, I can apply the same global query A to element C, in the builder it renders results fine, BUT on the frontend I don’t get any results.

Also seems like I can’t even get {query_results_count} to work in my Component in this case too.

Hi @dailce,

I was unable to replicate the issue. I’ve created the Global query loop, and added it to the element - it worked.
Later, I’ve connected the same global query to the element inside the component, and it worked as well.
Can you show me your query and setup?

As for the {query_results_count} issue. It seems that it’s the same problem as you commented on the other topic, and it’s still in WIP.

Best regards,
Matej

My query is producing the proper query YES. I must have done something wrong.

Screenshot 2025-10-28 at 12-48-09 My Vendor Listing – Sidville

But I still can’t add a condition with:

{query_results_count:sj9suj9} > 0

What I am trying to do is add a notification icon if the user has results. My component is a menu item. I guess I have to wait for the fix which is WIP :frowning:

Ok, I’m glad that the query is now working properly for you.

For the condition, yeah, best to wait for the fix that was mentioned in the other topic. Saying that, I’ll mark this topic as no-bug, as the main this for this topic is working now.

Thank you,
Matej