• I recently upgraded to 1.5 and like the Pages feature. I used to have a set of pages that I updated periodically which are well-suited to this feature.

    In my old sidebar, I had links to these pages with the date that I had last updated them (I manually updated the date in index.php) so that it looked something like:

    a€¢ Photos (03-03)
    a€¢ Travels (03-05)
    etc…

    I have set up Pages using wp-admin, and all is well with that. I’d like to include the date last modified in the menubar, but since this section is dynamically generated by wp_list_pages, I can’t figure out how to change the output.

    I’m using the default install, including the call to generate Pages in the sidebar.

    I poked around in template-functions-post.php a little bit, but I don’t know any php, so determining what to change and how to change it was beyond me.

    Any suggestions?

Viewing 3 replies - 1 through 3 (of 3 total)
  • I’d like to know how to display it properly too. I asked about it here before and didn’t get any real help.

    wp_list_pages displays the modified or updated or created times in GMT time for some reason. I sure wish it could be filtered just like the posted times of posts are … and comments … and how the Pages actually are dated in the Wp Interface under Manage Pages … why it can’t just be shown as the options_general.php date and time that we set in admin is beyond me.

    I haven’t poked around into the files to see if I can hack anything. I don’t want to hack this, this should be automatically part of the function to call the tags arguements, IMVHO. ??

    You can see how to work with the tags arguments here in the Codex

    What about…

    <?php wp_list_pages(‘sort_column=time_modified&show_date=modified’); ?>

    Thread Starter kmm

    (@kmm)

    Thanks for the suggestion. I hadn’t thought to look in the codex.

    <?php p_list_pages(‘date_format=m.d&show_date=modified&…

    did the trick.

    You are right about the modified time being taken as GMT. That’s really odd behavior. I just modified a couple of pages and their modified dates are listed as 3.12 even though I have 6 more hours of 3.11 left.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Date display for Pages in sidebar?’ is closed to new replies.