How to use ACPT with Breakdance builder
In this tutorial, we’ll use Breakdance to build a simple real estate website.
Step 1. Create a new CPT called “property” with populated meta fields
First of all, create a new custom post type called “property”.
You can refer to other tutorials for this operation.
Once the new post type is created, go ahead and create 3 basic meta fields:
Name these three fields:
- Gallery
- Owner_email
- Address
Now you are ready for the next step.
Step 2. Create new property posts
Of course, now you need to populate some property posts.
Be sure to populate all the meta fields.
Step 3. Create the property archive page
Now create a new template for the property archive page. You can create a custom page or a new Breakdance Template, is totally up to you.
Now, use the Post Loop Builder to loop the property posts. Go and create a global block.
First, insert the title and excerpt.
Now let’s add the Address field from ACPT.
Create a text block and click on the Dynamic data icon. A popup opens:
Now select the Address field from the menu. That’s it, every post in the loop has its dynamic meta field.
This is the final result:
Step 4. Create the property single page
Now we need a template for the property single page. You can edit a single property page or create a new Breakdance Template. Again, this is totally up to you.
First, insert the title and the content.
Below the 2 columns section. In the first one add the Address field as did before. In the second one, add the email:
Finally, below the columns section, add a gallery block:
Now, you can click on the dynamic data icon and select the Gallery field from ACPT.
Select the desired layout and voilà! …you are good to go!