• Hello,

    I’d like to create an archive by month but shows posts so it would produce the following html:-

    <ul>
    	<li><a href="#">January 2010</a>
    		<ul>
    			<li><a href="#">Article title here 1</a></li>
    			<li><a href="#">Article title here 1</a></li>
    			<li><a href="#">Article title here 1</a></li>
    			<li><a href="#">Article title here 1</a></li>
    		</ul>
    	</li>
    	<li><a href="#">February 2010</a>
    		<ul>
    			<li><a href="#">Article title here 1</a></li>
    			<li><a href="#">Article title here 1</a></li>
    			<li><a href="#">Article title here 1</a></li>
    			<li><a href="#">Article title here 1</a></li>
    		</ul>
    	</li>
    </ul>

    Any help is much appreciated.

    Dave.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Use this function

    <?php wp_get_archives(); ?>

    Thread Starter Dave Redfern

    (@daveredfern)

    Hello Vacmedia.

    I have looked at this function but it seems to either return a list of months or a list of posts without the heading of each month?

    Thanks

    Dave.

    Hey guys,

    Did anyone end up finding a solution for this?

    Seems such an obvious thing to do that it’s hard to believe no answer turns up in a search.

    Cheers,
    Nathan

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Archives by month showing posts’ is closed to new replies.