Bricks Builder Query Loop - Complete Guide with 7 Practical Examples

  Рет қаралды 4,408

Fancy Bricks

Fancy Bricks

8 ай бұрын

Update: In the Query loop of categories and sub categories, to the main Query loop you must assign 0 to the parent field.
In this tutorial I will solve the most frequent doubts about Query Loop in Bricks, you will learn how to use this tool with 7 practical exercises that you will use in most of your projects:
Query loop in Tabs
Query loop in Accordions
Query loop in with Sub categories
Query loop for Related posts/products
Query loop for Featured Products
Cross-Sell Query Loop
Up-sell Query Loop
Custom Query loop
This video will be a bit long but it will solve all your doubts.
👉Link for Custom Query. developer.wordpress.org/refer...
📣 Join the Facebook Community: / fancybricks
🤩 All Bricks templates: fancybricks.co/templates/
🔥 Buy Fancy Bricks: fancybricks.co/early/

Пікірлер: 19
@FancyBricks
@FancyBricks 8 ай бұрын
Code for cross-sells: $current_product_id = get_the_ID(); $crosssells = get_post_meta($current_product_id, '_crosssell_ids',true); return [ 'post_type' => 'product', 'posts_per_page' => 3, 'orderby' => 'menu_order title', 'order' => 'ASC', 'post__in' => $crosssells, ];
@keyanakroeker7455
@keyanakroeker7455 Ай бұрын
Thank you for this! This is exactly what I needed.
@stewartr7648
@stewartr7648 7 ай бұрын
Great tutorial. Thank you for taking the time to create it. I’ll use your examples to try and create a product category archive page that list products in the sub categories.
@TheBukitStudio
@TheBukitStudio 2 ай бұрын
Thank you so much! Working great! But, for upsells, it is showing the right type and amount of posts on the front but it displays ALL my products on the builder. Any idea?
@FancyBricks
@FancyBricks 2 ай бұрын
You probably haven't set a product to preview in the template settings.
@groundpets5101
@groundpets5101 2 ай бұрын
linking the querys when you press onto the electric bolt iron, are you using ACF getting the information across with acf? or this all just bricks?
@FancyBricks
@FancyBricks 2 ай бұрын
It's all native, but the explanation also applies if you use ACF fields.
@Xesca31
@Xesca31 8 ай бұрын
Thanks for the video! How would you do a query to display on sale woocommerce product that include variable products?
@FancyBricks
@FancyBricks 8 ай бұрын
This is a post for Fancy Bricks premium users fancybricks.co/on-sale-products-query-loop/
@Xesca31
@Xesca31 8 ай бұрын
@@FancyBricks nice, thanks!
@groundpets5101
@groundpets5101 2 ай бұрын
tab 1 build doing first part where you you div as a title then 2ed part you use pane same as the div, would i be able use both as a div? would it be less complicated easier to remember ?
@FancyBricks
@FancyBricks 2 ай бұрын
Hi, I don't understand your question, if you mean the quey in DIVs, adding a query loop requires a container.
@groundpets5101
@groundpets5101 2 ай бұрын
@@FancyBricks can i choose div or block dose it make any differences? as i was going do both div as they both use the same query to each other
@FancyBricks
@FancyBricks 2 ай бұрын
Container, block and div, return a div in the html. The difference is that the block and container are already configured with display flex and the container with a max-width. The div element has nothing configured. You can use whichever one suits you best.
@groundpets5101
@groundpets5101 2 ай бұрын
@@FancyBricks thanks
@Manolito-rh8dt
@Manolito-rh8dt 7 ай бұрын
Wooow very helpful thx. I would like to create a LINK TREE for my archive, and when you click on a category, the current tag should be displayed, but the tree structure, i.e. the link structure, should remain and not disappear. What's the best way to do this? I want to do it like you, with main categories and subcategories.
@FancyBricks
@FancyBricks 7 ай бұрын
Do you mean something like this? fancyanimations.com/docs/install-the-plugin-and-activate-the-license/
@Manolito-rh8dt
@Manolito-rh8dt 7 ай бұрын
@@FancyBricks Yes, exactly, just with subcategories.
@FancyBricks
@FancyBricks 7 ай бұрын
@@Manolito-rh8dt You must use the same template for the single post or archive in your case, this way you will give the impression that you are browsing through the tabs.
Sticky sidebar | Floating column - Bricks Builder
4:35
Fancy Bricks
Рет қаралды 918
터키아이스크림🇹🇷🍦Turkish ice cream #funny #shorts
00:26
Byungari 병아리언니
Рет қаралды 26 МЛН
How I installed the HARDEST operating system
34:40
Bog
Рет қаралды 113 М.
Bricks - Query Loop Builder (for Posts, Terms, Users)
21:13
Bricks - Visual Site Builder for WordPress
Рет қаралды 18 М.
Bricks Builder Nav Menu: 5 Reasons The OLD Way Is better
11:36
Custom Queries In WordPress
14:50
WPCasts
Рет қаралды 19 М.
02 - Woocommerce Archive - Template - Fancy Bricks
12:28
Fancy Bricks
Рет қаралды 1,1 М.
Query Loop in Nestable Slider - Bricks builder
3:17
Fancy Bricks
Рет қаралды 1,1 М.
A Better Way to Create Blog Archive Templates in Bricks Builder
56:41
Bricks Builder Tutorial - Custom Post Loops
30:21
WPTuts
Рет қаралды 15 М.