Тёмный

Better Way to Display ACF Gallery Field in Bricks Query Loop 

Ivan Nugraha
Подписаться 1,1 тыс.
Просмотров 1 тыс.
50% 1

Thanks to forum.bricksbu... who share the code.

Опубликовано:

 

12 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 20   
@IvanNugraha07
@IvanNugraha07 5 месяцев назад
Code: mangwp.com/query-loop-acf-gallery-field/
@abdulwaheedorg
@abdulwaheedorg 5 месяцев назад
Keep making amazing videos for Bricks ❤❤❤
@sumerianbrother
@sumerianbrother 3 месяца назад
Much appreciated! Very helpful w/ Frames slider! Cheers!
@IvanNugraha07
@IvanNugraha07 Месяц назад
Glad it was helpful!
@lmsbolt
@lmsbolt 3 месяца назад
DUDE! - I have been fighting with this for weeks! Thank you. You & Martin saved my rear. Instead of an image box with post id, I used a basic text box, with {post_id} for content and then have it link to {post_url} and it returns clickable links for each image. Do you know if there is a way to alter this so it can be used with the "Upload Files" field? I have a use case where I need to do essentially the same thing, but with .ai and .psd file types which the gallery field does not accept...
@IvanNugraha07
@IvanNugraha07 3 месяца назад
I have'not give a shot but i remember we can allowed files type in gallery field. You can try to put pdf, psd, ai etc there and use 'post_mime_type' => 'application/pdf', as an query arguments. Then get the file using {post_url}. Let me know if its work or if you have other solution
@lmsbolt
@lmsbolt 3 месяца назад
@@IvanNugraha07 - I did try that, but it did not seem to work. Thats why I wasthinking about the upload files field. I need to upload multiple files at a time and was tryint to avoid the repeater field, because it is a bit clunky for our use case. I found an article that stated extra file types are not allowed in the gallery field even when trying to modify the 'post_mime_type'
3 месяца назад
Thank you!
@IvanNugraha07
@IvanNugraha07 3 месяца назад
You're welcome!
@road2wp809
@road2wp809 5 месяцев назад
Thanks, Ivan and MartinWB, but how to sync the slide images(gallery)? It is sync the 2 galleries as a slide in your last video
@IvanNugraha07
@IvanNugraha07 5 месяцев назад
i havent try it yet but i suppose it has same method more or less. Will let you know if i found the solution :D
@Gyana.Ranjan
@Gyana.Ranjan 5 месяцев назад
The code you have provided is not working
@IvanNugraha07
@IvanNugraha07 5 месяцев назад
Hi, please make sure to replace the acf field name and change the return format to ImageID.
@Gyana.Ranjan
@Gyana.Ranjan 5 месяцев назад
Thank you Ivan for your help ! I have updated image return format to id and it's working perfectly
@Gyana.Ranjan
@Gyana.Ranjan 5 месяцев назад
It's showing the images in the frontend But why is it not displaying the images in bricks builder
@IvanNugraha07
@IvanNugraha07 5 месяцев назад
@@Gyana.Ranjan Yeps thats happen to me too. But unfortunately i havent figuring it out how to tackle that. Will let you know if i found the asnwer :D
@Gyana.Ranjan
@Gyana.Ranjan 5 месяцев назад
@@IvanNugraha07 Can You Make a Video On How To Query The Recently Viewed products Using This Method
Далее
Bricks Builder Query Loop With Happy Files
20:25
Просмотров 3,2 тыс.
a hornet bit me on the nose 👃😂
00:16
Просмотров 2,5 млн
Filtering Elementor Loop Grids + Products
14:49
Python RAG Tutorial (with Local LLMs): AI For Your PDFs
21:33
Why Are Open Source Alternatives So Bad?
13:06
Просмотров 632 тыс.
This RAG AI Agent with n8n + Supabase is the Real Deal
16:27
Bricks Builder: Recreate AirBnB like photo display
54:59
Better Post Loops in Bricks - Nested Post Loops
6:28
Просмотров 4,7 тыс.
Hack your brain with Obsidian.md
11:53
Просмотров 1,9 млн
a hornet bit me on the nose 👃😂
00:16
Просмотров 2,5 млн