How to Add Custom Post Meta to Post-Based Modules

If you are struggling to add meta information from your post into your Slider Revolution modules, this tutorial will help you.

What is Custom Post Meta and Why Should You Care?

Post meta is data that can be added to a post or page, but that will not show up on the front end of your site automatically. This includes data like post categories, tags, and custom fields.

Custom post meta, aka custom fields, is a type of post metadata you can define yourself to act as supplementary information.

For instance, you might be running a website to teach online certification courses, where each post is about a certificate that you are offering. In addition to those posts, you could create a custom field to track the number of students enrolled in the course. In this case, the additional information stored via custom post metadata would be the currently enrolled student count.

Slider Revolution [?] Slider Revolution is a website content creation tool with a focus on captivating animation and stunning visual effects.

It began its life as a plugin for creating slideshows, but has evolved into a fully fledged piece of design software.
has an option to create post-based modules [?] A module in Slider Revolution acts as a container for slides, which in turn act as containers for layers. Modules are created and edited with the module editor.

A "module" is a single, self contained piece of content. You can think of this as being similar to the way a post or page in regular WordPress is a self contained piece of content.

A module can represent any kind of content Slider Revolution is capable of creating, such as a slider, carousel, hero unit, navigation menu, posts display and so on.

Multiple modules can be combined to form rich content such as complete sites and landing pages.
that use your posts and their content in slides, however by default custom post meta is not available for use. However, such data can be made available with a simple text snippet. 

In this tutorial, we are going to learn both how to create a custom post meta, and how to use a simple text snippet to make it appear in your Slider Revolution post-based modules.

How To Add Custom Post Meta / Custom Fields To Slider Revolution

The following process assumes you have either already created a post-based module, or you have an understanding of how you can create one. 

If not, you can check out our guide on creating a post-based module here.

Enable Post Custom Fields

Go to Posts from the dashboard:

Select any post to edit:

Find the Options Dropdown Menu (three vertical dots):

Go to Preferences:

Select the Panels tab:

Toggle the Custom Fields option:

Click the button that appears labeled Enable & Reload:

Insert New Custom Field

Navigate to the Custom Fields section:

To insert a new custom field, click the Enter New link:

Add a name for the custom meta in the Name field. (Avoid spaces between name content, you can use camelCase or hyphen i.e. enrolledStudents, enrolled-students):

Insert your contents in the Value column:

Click on the Add Custom Field button:

Click on the Update button:

Edit Slider Revolution Text Layer

Go to Slider Revolution dashboard:

Hover over a post-based module and click on the pencil icon to edit:

Add a Text layer from the Top Toolbar in the module editor:

This will automatically open the Layer Options tab in the sidebar:

Click the Content sub-section:

There you will see a field Text/Button Layer Content containing the layer’s text content:

Click on the Meta button:

Go to the Post tab in the Meta Datas popup form:

Select Any custom meta tag:

Click on the X mark to close the Meta Datas popup form:

You will have a meta code in the Text/Button Layer Content:

Remove the New Layer default text added in the content:

Select the somemetatag from the meta snippet:

Replace the somemetatag in the meta snippet with the Meta Name you created in the Insert New Custom Field section:

Note: Make sure the name of the meta you have added in the meta snippet is exactly what you have added in the Custom Field on your post.

Click the Save button:

The added custom post meta will now appear on your slide:

Contact Us

If you’re still encountering any difficulty, don’t hesitate to contact our support team via support ticket or email ([email protected]), we’re always happy to help.

How to Add Custom Post Meta to Post-Based Modules

The Author

Kashif

Technologist, Writer, Philosopher, and above all a problem-solver. Living by the motto "Be the reason someone smiles today".

Liked this Post?
Please Share it!

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Newsletter

Join over 30.000 others on the Slider Revolution email list to get access to the latest news and exclusive content.