[Resolved] Adding further information to the copyright?

Home Forums Support [Resolved] Adding further information to the copyright?

Home Forums Support Adding further information to the copyright?

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #336534
    Marcus

    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

    #336582
    Tom
    Lead Developer
    Lead Developer

    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.

    #337955
    Marcus

    Thanks Tom,

    I added a shortcode into functions.php and it works as expected.

    Regards,
    Marcus

    #338008
    Tom
    Lead Developer
    Lead Developer

    Awesome 🙂

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.