Archived topic
Adding further information to the copyright?
3 replies · Started by Marcus on June 20, 2017
Hello,
I like to add further information to the copyright section, which is dynamically read from an external php file. How can I append the result from this substr call to the GP copyright?
<a href="http://tngsitebuilding.com/"><?php include '/httpdocs/subdomains/tng/version.php'; $tng_majorversion=substr($tng_version, 0, 4); echo "$tng_title $tng_majorversion"; ?></a>
My desired results would be 2 copyright lines.
1) WordPress copyright
2) TNG copyright (<--this is an external genealogy software which I am running in a sub domain)
Thanks for your hints.
Regards,
Marcus
The copyright field doesn't accept PHP.
You could put your PHP into a shortcode, then include the shortcode in the copyright field: https://codex.wordpress.org/Shortcode_API
You might need to reload/load another page after entering the shortcode into the field in order to see it.
Thanks Tom,
I added a shortcode into functions.php and it works as expected.
Regards,
Marcus
Awesome :)