ACPT v2
  • General
    • Minimum requirements
    • Download the plugin
    • Install ACPT
    • Install ACPT with Composer
    • Managing your license
    • Migrating from v1
      • Fix data loss after migration from V1
    • Settings
    • Translations
    • How to open a ticket
  • Basics
    • Custom post types
    • Taxonomies
    • Post type-Taxonomy association
    • Option pages
  • Meta fields
    • Field groups
    • The meta fields manager
      • Group settings
      • Basics
      • Advanced options
      • Conditional rendering
      • Validation rules
    • Field types
      • Address field
      • Audio field
      • Audio multiple field
      • Color field
      • Country field
      • Currency field
      • Date field
      • Datetime field
      • Date range field
      • Editor field
      • Email field
      • Embed field
      • File field
      • Gallery field
      • HTML field
      • Icon field
      • Image field
      • Length field
      • List field
      • Number field
      • Password field
      • Phone field
      • QR Code field
      • Select, checkbox, and radio
      • Rating field
      • Repeater field
      • Relational field
      • Range field
      • Table field
      • Textarea field
      • Text field
      • Time field
      • Toggle field
      • URL field
      • Video field
      • Weight field
  • Permissions manager
    • Custom post types permissions
    • Taxonomies permissions
    • Option pages permissions
    • Meta fields permissions
  • Tools
    • Custom APIs
    • Health check
    • Datasets
    • Export data
    • Import data
  • Forms
    • Manage forms
    • The form builder
    • Examples of form usage
      • Create a new post type
      • Modify an existing post type
      • Create a new term
      • Modify an existing term
      • Create a new user
      • Modify an existing user
    • Form submissions log
  • Dynamic blocks
    • Create your first block
  • Developers
    • Functions
      • register_acpt_post_type
      • delete_acpt_post_type
      • register_acpt_taxonomy
      • delete_acpt_taxonomy
      • assoc_acpt_taxonomy_to_acpt_post
      • remove_assoc_acpt_taxonomy_from_acpt_post
      • register_acpt_option_page
      • delete_acpt_option_page
      • save_acpt_form
      • delete_acpt_form
      • save_acpt_form_field
      • delete_acpt_form_field
      • get_acpt_form_object
      • get_acpt_form_field_object
      • save_acpt_meta_group
      • delete_acpt_meta_group
      • get_acpt_meta_group_objects
      • get_acpt_meta_group_object
      • save_acpt_meta_box
      • delete_acpt_meta_box
      • get_acpt_box_object
      • save_acpt_meta_field
      • delete_acpt_meta_field
      • get_acpt_meta_field_objects
      • get_acpt_meta_field_object
      • save_acpt_meta_field_value
      • delete_acpt_meta_field_value
      • get_acpt_fields
      • acpt_field_has_rows
      • acpt_field_has_blocks
      • get_acpt_field
      • get_acpt_child_field
      • get_acpt_block
      • get_acpt_block_child_field
      • acpt_field
      • is_acpt_field_visible
    • Shortcodes
  • Integrations
    • API Rest field integration
    • Breakdance
      • Build a real estate website
      • Working with nestable fields
    • Bricks builder
      • Build a real estate website
      • Working with nestable fields
      • Working with Slider (Nestable) and Gallery field
      • Working with relational fields inside query loops
      • Additional options
      • Working with text links
    • Divi
    • Elementor
      • Basic field blocks
      • Nestable field blocks
      • Dynamic tags
    • Gutenberg
      • Basic fields block
      • Relational fields block
      • Repeater fields block
      • Working with FSE
    • Oxygen builder
    • Rank Math
    • SEOPress
    • Slim SEO
    • WooCommerce
    • WP All Import/Export
    • WP Grid Builder
    • WPGraphQL
    • WPML
    • Yoast
    • Zion builder
Powered by GitBook
On this page
  • Create custom fields for the property post type
  • Fill in the custom fields and click Edit with Bricks
  • Uh, oh! Can't see my post!
  • Back to your post, use ACPT fields in Bricks
  1. Integrations
  2. Bricks builder

Build a real estate website

Build a real estate website with Bricks and ACPT

PreviousBricks builderNextWorking with nestable fields

Last updated 1 year ago

This short tutorial will show how to create a real estate website using and ACPT entirely from scratch.

Create custom fields for the property post type

Create a new meta group and assign it to the Property custom post type.

Then, create a meta box called basic_info containing a bunch of fields.

Fill in the custom fields and click Edit with Bricks

Fill in all the required data for this property listing in the custom fields under the 'basic_info' box.

Now, publish the post, then click Edit with Bricks, and try to view the post from the front-end or in the Bricks editor.

Uh, oh! Can't see my post!

It is very common to find that the first time you try to view a new custom post, all you get is a message 'invalid post type'.

This is something we have been tackling with all kinds of custom post plugins since custom posts began to be used in WordPress.

Don't panic, here's how to fix the problem:

  • Go to WordPress Settings - Permalinks

  • Select 'Plain' as your permalink structure - Select Plain as permalink structure and then Save.

  • Now, select the permalink structure you want - Select the permalink structure that you have or want to use.

Now you should be able to see your saved post!

Back to your post, use ACPT fields in Bricks

Click Edit with Bricks to view it in the Bricks editor. Let's get started with Bricks:

After adding the title and centering it, we'll start to add the ACPT fields to the page.

Displaying the custom post matter in Bricks - Adding an image field

Add a Container to the new Section.

Drag the Image pin from the left-hand pane into the Container.

At this point you can select the image either directly from the media library through 'Select Image'.

Or, you can pull the image through two other options, through 'dynamic data' using the lightning icon, or from an external url using the option for that.

Here, I had already created a custom image field when creating the meta box, and added the property image when filling in the data on the custom post.

So, I click the lightning icon for dynamic data.

Then select the property image field.

The image now appears in the editor area, but left aligned.

I center it from the Style tab.

Now, I have the Title and the Image of the property in the editor area.

Displaying the custom post matter in Bricks - Adding text above the image

I want to add a short description of the property above the image and after the title.

So, I drag a Rich Text pin from the left-hand pane into the top container above the image and place the Rich Text under the post title in the same container.

Adding dynamic data through Rich Text

You can put in almost all custom field data through the Rich Text (RT) pin, except for images and videos.

Once the RT pin is placed in position, click it and on the left-hand pane you'd see it open up.

Click the lightning icon to find and select custom field

Remove the placeholder text under the Content - Add media - Visual tab.

Click the 'lightning' dynamic content icon.

Select your custom field for the text you want

Scroll down to ACPT and select the field you want.

In this case I had created the 'short description' field in the 'basic_info' meta box, and I select that.

Align field and check Bricks render

I align the field to the center, press the 'b' icon on the left top corner and check how it's rendering.

Displaying the custom post matter in Bricks - Displaying more custom field data

In Bricks, adding custom field text data from ACPT custom post is almost the same in every case.

You first add a new Section.

Add a container and a block

You add a container or a block in a Section.

Create columns inside the block

Select the block on your right-hand pane, then select the column layout you want.

I chose the 4-column layout here.

Drag RT pins where you want to place them

It is easy to place them under corresponding columns in the right-hand pane.

Place RT pins in all columns

Now that I have filled in RT pins in all the columns, I'll pull the custom field data in respective areas.

Check display on the frontend

On the frontend now you'll see placeholder text in all the columns where custom field data will come in.

Add the custom field data in the columns

First remove the placeholder text.

Select the custom field

Select the appropriate field to display from the 'lightning' dynamic data icon of the RT in the left pane. Save.

Style everything with Bricks. Save and publish.

Repeat until you have text in every column.

Do the same for all RT pins

Place custom fields in each column with the same process.

And here's the frontend of the Custom Post in Bricks

All information I put in the Meta box is correctly rendering on the frontend.

Bricks Builder