• Resolved arronjuk

    (@arronjuk)


    Hi all, I am trying to add archives to a menu I have on the left of my page which is generated using the WP_List_Pages function.

    I have managed to get the list I want to show up within the content of a page by using <?php wp_get_archives( ‘type=yearly’ ); ?>.
    This is exactly what I want, but I want them to appear as sub items of the ‘Archives’ page.

    I hope that makes sense I what I have and what I need, if not let me know!

    Thanks in advance!

    Arron

Viewing 1 replies (of 1 total)
  • Thread Starter arronjuk

    (@arronjuk)

    Update:

    I have still been looking around for an answer to this. I have managed to get two pages each showing archives for the relavent category. I managed this by using ‘<?php query_posts(‘category_name=great-lines’); ?>’.

    I also have a links to the years at the top of each page filtered by category by using ‘<?php wp_get_archives(‘type=yearly&cat=4′); ?>’.

    The problem is when I click a year, the page just reloads as it is.

    I have found a couple of plugins that seem to say they solve the problem. But after installing them I am more confused than ever!!

    I really didn’t think this would be such a problem, if any one can offer some advice it would be much appreciated! ! ! !

    thanks,

    Arron

Viewing 1 replies (of 1 total)
  • The topic ‘Display Archives by year within my WP_List_Pages’ is closed to new replies.