dynamic-wordpress-post-content

How to add dynamic content in WordPress post?

I have developed a plugin to display dynamic content on WordPress post just by setting values from the WP Editor area.

Learn how to add dynamic post content in a WordPress blog.

dynamic-wordpress-post-content

This method can help to automate your blog content.


[alert-warning]How to add dynamic content in WordPress post?[/alert-warning]

[alert-success]Example: Suppose a blog post contains “2015” as the value (say).

Now, it should be displayed as “4” in the year 2019 (i.e. 2019-2015 = 4) and that of  “5” in 2020 (i.e. 2020-2015 = 5).

In other words, the final number (result printed) is the total duration from the current year to the value set.[/alert-success]

I have checked and implemented the solution for the above example.


[alert-note]

From Year: 2015

To Current Year: [year]

Result/Duration:  [rxpnum targetyear=2015]

[/alert-note]


[alert-note]

From Year: 2016

To Current Year: [year]

Result/Duration:  [rxpnum targetyear=2016]

[/alert-note]


[alert-note]

From Year: 2017

To Current Year: [year]

Result/Duration:  [rxpnum targetyear=2017]

[/alert-note]


[alert-note]

From Year: 2018

To Current Year: [year]

Result/Duration:  [rxpnum targetyear=2018]

[/alert-note]


 


Posted

in

,

by

Tags:

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *