• Resolved jopalle

    (@jopalle)


    hi, i′m trying to create my own template for download-monitor.

    i want to show the date of the post or the file but i can′t find the method name – just getting errors that the methods i′m trying do not exist!?
    for example: $dlm_download->get_the_post_date();

    any idea if this is possible?

    thank you!!!!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hello,

    Please use below code in your custom template to display the post date.

    <?php echo get_the_date(); ?>

    I hope that resolves the issue. Let us know if you require any further assistance.

    Thread Starter jopalle

    (@jopalle)

    perfect. thank you!

    Thread Starter jopalle

    (@jopalle)

    hi,
    thank for your help, but i just saw that your code doesn′t solve my problem.
    the output of “echo get_the_date()” is the date of the “PAGE” and not of the Download.
    can you please have a look at my code and tell me if it is possible to show the date of the “download/file”!?
    Thank you

    <a class="download-link" title="Datei herunterladen bzw. in neuem Fenster ?ffnen" href="<?php $dlm_download->the_download_link(); ?>" target="_blank">
    	<?php $dlm_download->the_title(); ?>
    </a> <span class="filesize">(<?php echo get_the_date(); ?>, <?php $dlm_download->the_filesize(); ?>)</span><br /><?php $dlm_download->the_short_description();?>
    Thread Starter jopalle

    (@jopalle)

    i′ve solved it with this code
    <?php echo get_the_date('d.m.Y', $dlm_download->get_id()); ?>

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘date of post/download’ is closed to new replies.