SOLVED: Media Query Type Video

I want to set dynamic videos for my site. I’m using query. But it dos not work. How should set
10c6ef4547ccd990929b085c0f8dece8

1 Like

Hi,
Please follow the instructions provided here: Query Loop – Bricks Academy

1 Like

I had read this article. When I query images, it works fine, but videos don’t work.

After consulting with the developers, we have determined that this is a bug. We will update the thread as soon as the problem has been fixed.

PS: There’s a workaround.
Use {echo:wp_get_attachment_url('{post_id}')} in the video’s dd source, and don’t forget to add/use this filter: Filter: bricks/code/echo_function_names – Bricks Academy

After testing yesterday, I found a special solution. I used a file URL within the video element source to use a fixed file path and dynamically call the post title.
for example https://xxx.com/wp-content/uploads/2025/07/{post_title}.mp4
However, I was unable to dynamically use audio.

We’ve fixed this issue in Bricks 2.0 RC2, now available as a manual download in your account (see changelog).

Please let us know if you are still experiencing issues.

As with any pre-stable release, please do not use it on a production website. It is intended for testing in a local or staging environment only.

1 Like