• Resolved jkd77

    (@jkd77)


    I get the following error:

    Fatal error: Using $this when not in object context in /home/ssec/public_html/wp-content/plugins/last-modified-timestamp/last-modified-timestamp.php on line 103

    …when doing this in my theme template file:

    <?php
    if( function_exists(‘get_the_last_modified_timestamp’) ) :
    $modifiedDate = get_the_last_modified_timestamp();
    ?>
    <meta name=”date” content=”<?php echo $modifiedDate; ?>” scheme=”” />
    <?php endif; ?>

    Thoughts?

    https://wordpress.org/plugins/last-modified-timestamp/

Viewing 1 replies (of 1 total)
  • Plugin Author Evan Mattson

    (@aaemnnosttv)

    Thanks for bringing this to my attention.

    I’ve fixed this with the latest release (1.0.3).

    Let me know if you have any further problems.

    Cheers!

Viewing 1 replies (of 1 total)
  • The topic ‘Error when using function in template’ is closed to new replies.