• AriesCZ

    (@ariescz)


    I have created page template that shows subpages of page with the template, sorted by date created, with date showing next to each page title.
    Is there any way to make the date appear BEFORE page title, something like “<date-created> – <page-title>” (instead fo default “<page-title> <date-created>”)?

Viewing 3 replies - 1 through 3 (of 3 total)
  • jrav001

    (@jrav001)

    Post the code you are using now and we can show you what you need to do. If it’s long, use https://wordpress.pastebin.com/

    Thread Starter AriesCZ

    (@ariescz)

    I use this code

    <div class="entry">
    <?php the_content('<p class="serif">Read more &raquo;</p>'); ?>
    <ul>
    <?php wp_list_pages('sort_column=post_date&show_date=created&child_of='.$post->ID.'&title_li='); ?>
    </ul>
    </div>

    I, too, am looking to move the date to the left of the title. Any ideas? My code is:

    <ul>
    			<?php wp_list_pages('show_date=created&child_of=1357&title_li='); ?>
    		</ul>
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘wp_list_pages – show date before page title’ is closed to new replies.