Generic selectors
Exact matches only
Search in title
Search in content
Filter by Categories
Advanced Scripts
Amazon SES
Amazon Web Services
BasePress
Blocksy Theme
Brand Building
Bricks Builder
BunnyShell
Cloudflare
CSS
Digital Marketing
Elementor
Email Marketing
Entrepreneurship
Fluent CRM
Fluent Forms
Fluent SMTP
GoDaddy
Google Fonts
HTML
Hydrogen Pack
JavaScript
Jetpack
Kadence Theme
LiveCanvas
Meta Box
Online Business
Oxygen Builder
OxyMade
PHP
Piotnet Forms
Pods
SaaS
Scripts Organizer
Search Engine Optimization
Social Media Marketing
Swiss Knife
Web Design
Web Development
Web Strategy
WordPress
Work From Home
Zion Builder

Display The Last Modified Date of Your Pages in Oxygen Builder

Written by:
Mohammed Wasim Akram
First Published on:
September 25, 2020
Last Updated on:
June 21, 2021
Post Categories:
✼ Disclaimer: SyncWin is user-supported therefore this page may contain our affiliate links and if you purchase something using those links, we may get some commission without any additional cost to you. Click to Learn More.

Please note we want to keep things crystal clear that this page may contain some of our affiliate links. Also, we don't know, use or recommend every product we link to, so please do your due diligence before making your buying decision.

However, there are very few selected products that we trust, use, and recommend to our readers and community, and we always mention that on our website which you could also find on our dedicated Recommendation Page.

Hence, if you make a purchase using any of those links, then it is safe to assume that we might get a small amount of commission without any additional cost to you, which helps and encourages us to produce more helpful content like this for you.

Feel free to explore our Legal Policy Pages.

If you are wondering how to display your page modified/updated date along with or instead of the page published date in the Oxygen template, then in this post I will teach you how to do that within a few minutes.

You only need to know how to copy and paste the provided code snippet to your WordPress site using the Code Snippets, Advanced Scripts, or any other similar plugin.

Also, I assume that you are already comfortable with Oxygen Dynamic Data options as we are going to use that extraordinary feature to display the last modified date of the page to the Oxygen template.

Last Modified Date in Oxygen Templates - Image - SyncWin

Even if you don't know how to use them properly still no worries, just follow the post carefully and I will teach you everything step by step.

Register a PHP Function To Display Last Modified Date in Oxygen Templates

The very first step is to install and activate the Code Snippets plugin, then add a new code snippet after that just copy the provided PHP code snippet you can find below and paste that to register a function to call the last modified date.

/* Display Last Modified Date in Oxygen Templates */

function syncwin_display_last_modified_date( ) {
return get_the_modified_time('F j, Y');
}

Special thanks to Matt Hias for helping me to improve the old bloated code snippet with a new optimized version.

Add The Page Modified Date Using Oxygen Dynamic Data Feature

The final step is to add a text element to your template and then select the texts and you will find an Insert Data button on top of the Oxygen editor.

Once you click that button you will see a pop-up window called Insert Dynamic Data, now just click over to the PHP Function Return Value button under the Advanced section.

Oxygen Dynamic Data Window for Text Element - Image - SyncWin

Once you click on that option you will see two fields, the first one is a Function Name and the second one is the Function Arguments field.

In the Function Name field, you need to insert "syncwin_display_last_modified_date" which is our function name that you also can see in the first line of the code snippet I provided, now leave the second Function Argument field blank as we don't need that in this case.

Next just hit the Insert button on the same window and click the Save button from the top right corner of the Oxygen editor.

Now you can see the page Updated/Modified Date to the frontend of your Oxygen page once you reload the page.

Display-Image-PHP-Function-Return-Value-in-Oxygen-Dynamic-Data-Image-SyncWin
The Navigation Should Look Like This:

> Open the Oxygen Editor
> Click the +Add Button
> Add a text element
> Double click on that particular element to select the texts
> Hit the Insert data button from the top of the page
> Select the PHP Function Return Value button under the Advanced section
> Insert 
"syncwin_display_last_modified_date" in the Function Name field
> Leave the PHP Argument field blank
> Hit the Insert button

> Save the Oxygen Template using the Save button from the top right corner

Conclusion

In this knowledgebase post, I have covered how to display the page updated/modified date to your Oxygen template using a simple PHP function and dynamic data feature of Oxygen.

I believe this guide was helpful to you so if I am right and you think the same as I do, then please share it with your community so that they also can take benefit from this post.

Also if you have to say something then feel free to leave your valuable thoughts in the comment section.

Thanks a ton for spending your precious time reading this post on syncwin.com.

Become an Insider to Syncronize with Web-Success.

email Newsletter
Facebook Group
Subscribe to our newsletter to get insider wisdoms.
Join our community to connect with likeminded folks.
Join FB Group

Related Resource Posts

August 11, 2020
How To Create A Beautiful Sidebar in Oxygen [Step by Step]

If you're new to Oxygen Builder then you must be confused about how to set up a sidebar as there is no such option available, therefore in this post, I am going to teach you to set up and design a sidebar in Oxygen step by step.

Read More
April 26, 2021
Fix the Unclosed Broken Oxygen Pro Menu on Safari

If you are facing an issue where the menu built with the Oxygen pro menu element is broken and always open in the Apple Safari Browser then this tutorial will help you fix just that using a simple CSS. TABLE OF CONTENTS The Unclosed Broken Pro Menu IssueReason for The Unclosed Broken Pro Menu IssueFix […]

Read More
1 2 3 8

Leave Your Feedback

Subscribe
Notify of
guest
5 Comments
Most Voted
Newest Oldest
Inline Feedbacks
View all comments

Blog Categories

Favorite Products

WordPress Support - Sidebar Widget Ad Banner Image - SyncWin
SyncWin Community Group Ad Banner Image - SyncWin
Top menu-circlecross-circlechevron-down-circle
linkedin facebook pinterest youtube rss twitter instagram facebook-blank rss-blank linkedin-blank pinterest youtube twitter instagram