Shortcodes not displaying correctly
-
Hi, there.
Newbie here, so I apologise in advance for this basic question :(
I want to display the current year on a WP page. So, I’m using the shortcode …
[date format=”Y” timestamp=”today”]
But rather than the page displaying 2019, it’s just displaying the shortcode.
What am I doing wrong?
H E L P
The blog I need help with is: (visible only to logged in users)
-
Hello,
you can easily display the year on your website, but you will need a small piece of code in your funstions.php file in order to display the shortcode as a year, here are further instructions on how to do it:
I assume that you want the dynamic year shown in the footer of your website, next to the copyright, I suggest that you take a look at this article as well
https://www.wpbeginner.com/wp-tutorials/how-to-add-a-dynamic-copyright-date-in-wordpress-footer/
It explains how to add the dynamic year, so you do not have to change it every year manually.Furthermore, you are using the self-hosted version of WordPress, not the WordPress.com one, so please post your further inquiries here:
https://wordpress.org/support/I hope this helps
Cheers
- The topic ‘Shortcodes not displaying correctly’ is closed to new replies.