WordPress.org

Ready to get started?Download WordPress

Forums

Enable Media Replace
Using shortcode within template/loop (1 post)

  1. huskypup
    Member
    Posted 1 year ago #

    Hello,
    I'm a newbie when it comes to PHP and WordPress. I'm using the Skeleton theme for WordPress for which I have built a custom search template.

    I'd like to use the [file_modified] short code and I thought this would work

    <?php echo do_shortcode('[file_modified id="'.'$post->ID'.'" format="j F Y"]'); ?>

    However all the files are returning the date 1 January 1970.

    Is any one able to help?

    Cheers

    http://wordpress.org/extend/plugins/enable-media-replace/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic