Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter designerken

    (@kcharity)

    I have been using template tags to create the page how I want. but I have a couple things I can’t figure out:

    Can I have the file name instead of displaying the title. I tried
    {filename} in the custom output formats area as well as $d->filename in the template tag. {filename} does nothing and $d->filename outputs the file path.

    I was also having an issue with formatting $d->date As it is I get this “2012-03-24 11:26:00″ I was hoping for more control like when using the shortcode {date,”m-d-Y”} I tried $d->date(m-d-Y) but that is not working for me either.

    Thread Starter designerken

    (@kcharity)

    More progress, here is how I changed the filename output and date format in the template tag:

    <br />
    echo 'File Name: ' . basename($d->filename) . '<br />';<br />
    echo 'Release Date: ' . date("m-d-Y", strtotime($d->date));<br />

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: WordPress Download Monitor] Custom download page’ is closed to new replies.