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?
- The topic ‘Using shortcode within template/loop’ is closed to new replies.