Skip to content

Posts & Themer

Now that you know how post types work, it's time to decide how these posts are going to visually appear. This section will show you how to use Beaver Themer to create a template for your posts. We'll also discuss how to use "Field Connections" to create a more custom layout.

Example: Blog Feed Layout

We're going to use the blog feed layout as an example to demonstrate how to create a main archive page, category archive page, and singular post page in the sections below. For the Archive Post Layout walk-through, we will be looking at the "Feed - Blog Page". For the Category Archive Post Layout walk-through, we will be looking at the "Feed - Category Page". And finally, for the Singular Post Layout walk-through, we will be looking at the "Feed - Post Page".

Feed - Blog Page

Feed - Blog Landing

Feed - Category Page

Feed - Post Category

Feed - Post Page

Feed - Single Post

Post - Singular Layout

Before you Start

Make sure you have you have created 3 dummy posts, using lorem ipsum text and adding a featured image, as well as 3 dummy categories. You'll be building out a version of the Feed - Post Page. Review the example features and demo to see the full layout you'll be building.

  • 1 Add a new singular themer layout
  • 2 Name it something like "Post Singular Layout"
  • 3 In the Location drop down choose Posts > All Posts
  • 4 Publish the layout, then launch Beaver Builder
  • 5 Remove the default themer post template - its easier to start with a blank slate
  • 6 Add a hero row or columns to the page to make it consistent with the layout on the rest of the site

Features: Large hero, post title & meta, featured image hero background, post content (standard modules) & sidebar

Feed - Post Page
Feed - Single Post

Post - Blog Layout

Before you Start

Make sure you have you have created 3 dummy posts and 3 dummy categories. You'll be building out a version of the Feed - Blog Page. Review the example features and demo below to see the full layout you'll be building.

  • 1 Add a new archive themer layout
  • 2 Name it something like "Blog Archive Layout"
  • 3 In the Location drop down choose Post Archive
  • 4 Publish the layout, then launch Beaver Builder
  • 5 Remove the default themer post template - its easier to start with a blank slate
  • 6 Add a hero row or columns to the page to make it consistent with the layout on the rest of the site
  • 7 Pull a posts module into the archive template
  • 8 Set the content of the module to "main query"

Features: Page title & magazine tiles (using the PowerPack Content Tiles module), post feed (PowerPack Content Grid), Sidebar

Feed - Blog Page
Feed - Blog Landing

Post - Category Layout

Before you Start

Make sure you have you have created 3 dummy posts and 3 dummy categories. You'll be building out a version of the Feed - Category Page. Review the example features and demo below to see the full layout you'll be building.

  • 1 Add a new archive themer layout
  • 2 Name it something like "Category Archive Layout"
  • 3 In the Location drop down choose Post Category Archive > All Categories
  • 4 Publish the layout, then launch Beaver Builder
  • 5 Remove the default themer post template - its easier to start with a blank slate
  • 6 Add a hero row or columns to the page to make it consistent with the layout on the rest of the site
  • 7 Build the Post feed layout using PowerPack Content Grid and Custom Layout with Field Connections
  • 8 Set the content of the module to "main query"
  • 9 Set the layout to "custom" and click to "edit custom layout" - In the HTML tab you will see a regular HTML layout filled with shortcodes (see below for more information on field connections & shortcodes)
  • 10 The CSS for the posts custom layout can be modified from the CSS tab in the same area once you're done with your html layout

Features: Category title heading module (PowerPack Smart Headings), Post feed (PowerPack Content Grid), Sidebar

Feed - Category Page
Feed - Post Category

Field Connections & Shortcodes

Field Connections in Themer

Beaver Themer field connections work like variables. They let you connect certain row and module settings to external data on your site, such as:

  • Site information (site title, site tagline)
  • Post information (post title, post content, featured image, categories, tags, etc.)
  • WordPress custom fields

Field Connection Shortcodes

When you open a row or module for editing, you'll notice a plus sign next to some of the setting fields. These plus signs indicate that you can set field connections to eligible data from another area of your site. When you mouse over a field connection, you'll see a choice of Connect or Insert.

  • Connect

    To add the field connection as the only value in the row or module setting, click Connect.

  • Insert

    If you want to add additional text or more than one field connection to the row or module setting, click Insert to insert the shortcode.

Field connection shortcodes are essential in the following cases:
  • You want the module setting to display more than just a single field connection. For example, you want to add some text or use more than one field connection.
  • You want to add custom field connections to your layout. For example, you want to use a custom layout in a Posts module to include custom field values.

Note: Field connection shortcodes always substitute a text string, so they can only be used for module settings where you'd normally enter text.

Finding Shortcodes & Parameters

There are two ways to find field connection shortcodes and parameters: One is to look through the field connection shortcode index from the manually-maintained Beaver Builder knowledge base. Another "dynamic" way is to access the shortcodes and their parameters through an HTML module. This way you can see a full list of field connections regardless of data type.

Using Conditional shortcodes

Besides field connection shortcodes, which return the contents of field connections as text strings, Beaver Themer has conditional field connection shortcodes, which display custom text if the field connection shortcode meets the conditional if statement.

You can test for:

  • Boolean if and if-else syntax

    Tests whether the shortcode returns content or is empty

  • Field Values

    Test for text or integer value for WordPress custom fields

Table of Contents
    Add a header to begin generating the table of contents
    Scroll To Top