Jump to content

Archived

This topic is now archived and is closed to further replies.

janpeeters

[request] make social-link copyright text accept short codes for year.

Recommended Posts

janpeeters

I use a date short-code plugin to keep the copyright year on my website updated so I don't have to change it with a new year. The social links copyright field doesn't accept shortcodes. Could this be added? Or better, could social links incorporate date short codes so that we can have dynamic year, month, date info in there? Thanks.

Share this post


Link to post
Share on other sites
Jackey

Second that!

@janpeeters If you have a child theme add this to functions.php for the [year] shortcode:

function year_shortcode() {
  $year = date('Y');
  return $year;
}
add_shortcode('year', 'year_shortcode');

It works in Sitemap Footer in the Terms field.

Share this post


Link to post
Share on other sites
Jackey

@Simon Can this also be done with Sitemap Footer > "Menu Title 1", "Menu Title 2", "Menu Title 3", "Title" and "Text description". 

Share this post


Link to post
Share on other sites
Jackey
23 hours ago, Jackey said:

@Simon Can this also be done with Sitemap Footer > "Menu Title 1", "Menu Title 2", "Menu Title 3", "Title" and "Text description". 

Pretty please? It should give me the possibility to change the language of the content of the sitemap footer in the static footer. Or do you know another way to go about this?

Share this post


Link to post
Share on other sites

×