We have started IMPREZA 8 BETA testing. Participate and leave your feedback!

Custom Fields Usage

Custom fields are used to show editable information on posts, pages, or any custom post types. Impreza has built-in custom fields, like the "Page Layout" box. To create your own additional fields we recommend using the Advanced Custom Fields plugin. Read an example of usage below.

How to add "Subtitle" to posts via Advanced Custom Fields #

  1. Go to Impreza > Addons admin page and install the "Advanced Custom Fields" via a single click
    2609.png

  2. Go to Custom Fields > Add New to create a Field Group
    2368.png

  3. Enter any title (e.g. "Posts"), click "+ Add Field" button and enter "Subtitle" into Field Label
    2369.png
    2370.png

  4. Scroll down to "Settings" area, set Style as "Seamless (no metabox)" and Position as "High (after title)"
    2371.png

  5. Scroll up and click the "Publish" button at the top-right part of the screen.
  6. Go to Impreza > Content Templates and create a Content Template or use an existing one.
  7. Add "Post Custom Field" element and select showing "Posts: Subtitle" in its settings
    2627.png

  8. Go to Impreza > Themes Options > Pages Layout and set that Content Template as the content of posts
    2610.png

  9. Go to edit any existing post or create a new one, you will see a new "Subtitle" field. Enter some text and it will appear on your post
    2376.png

How to show Custom Field values in other elements #

Information below is relevant to Impreza version 7.9 and later.

Some theme elements may use dynamic values via {{custom_field_name}} shorthand.

For example, the Real Estate demo has following ACF fields:

2589.png

If you add Text element with "{{storeys}}-storey house with living area of {{living_area}} sqm, with {{bedrooms}} bedrooms, located on a plot of {{land_area}} sqm." text into "House Page" Content template:

2590.png

After that every house page will display values from its custom fields, like:

2591.png

Elements with dynamic values support #

  • Text (Text option)
  • Button (Button Label option)
  • Tabs/Accordion Section (Title option)

Predefined dynamic values #

  • {{comment_count}} - shows comments amount of a post (reviews ammount of a WooCommerce product)