Toolset allows you to display Dynamic Sources, like custom fields, inside any text blocks including headings, buttons, and more.
You can find the Toolset’s Inline Fields button inside WordPress core blocks, Toolset blocks, and popular block plugins.
To display any Dynamic Source inline, insert or select a block with a text input and look for the Inline Fields button. Dropdown menus will appear, allowing you to select a Dynamic Source.
You can change the format of certain types of custom fields (dates, taxonomies and excerpts), by clicking on them.
If at any time, you want to select another field for the inserted inline field, simply click on it and use the dropdowns.
Displaying fields that contain links
You can display the Post title with a link and Author Posts Link fields inline using the following blocks:
- Core Paragraph
- Core Heading
- Toolset Heading
Fields containing HTML tags are not available in most blocks. This is because outputting links and other HTML inside blocks can break their output.
Because of this, the preview of links has HTML removed in the backend editor. The field’s text remains, of course.
Limitations on displaying Inline Fields
Currently, there are two limitations on where and how the Inline Fields feature works.
Inline Fields work in blocks using RichText inputs
Toolset Inline Fields automatically work in all blocks that use RichText input.
However, if a block uses the simple text input, the Inline Fields button is not available.
Inline Fields values don’t update live in the backend editor
Inline Fields display Dynamic Sources like custom fields and standard WordPress fields. As these fields are dynamic, their values can change at any time.
If a value of any field that you display using the Inline Fields feature changes, this will be automatically updated and reflected in the backend editor only for the Toolset Button and Toolset Heading blocks. Currently, all other blocks do not automatically refresh the values of fields displayed inline.
Of course, on the front-end, dynamic sources will always display the current (i.e. updated) version of the value, as it’s stored in the database.
Related topics
- Filtering Custom Lists of Posts
- Filtering Toolset Views by Dates
- Enabling Legacy Version of Toolset Views
- Styling Custom Searches
- Styling Views and Archives
- Styling Single-post Templates
- Adding Custom CSS to Templates, Archives and Views
- Assigning Templates to Posts Conditionally
- Passing Arguments to Views
- Adding Custom JavaScript to Views, Templates and Archives
- YouTube Videos with Advanced Options
- Displaying Form Data
- Creating templates to display members-only content
- Creating and Displaying Repeatable Field Groups
- Displaying a Map on A Single Post Template
- Displaying a List of Posts on A Map
- Creating Sliders with Dynamic Post Content
- Adding Dynamic Content to Your Homepage
- Creating a View
- Creating a Custom Archive Page
- Creating Templates to Display Custom Posts
- Creating Responsive Columns and Grids
- Display Content Conditionally
- Using Third-Party Hidden Fields