Jump to content

Recommended Posts

Posted

Hi everyone, I am trying to get my entries in MT to archive by year so that it looks like the following:

 

2004: Jan Feb Mar Apr May, etc.

2003: Jan Feb Mar Apr May, etc.

 

i have seen several snippits of code around that will do this and i've seen it done successfully on several sites, but i can't seem to work it out myself. i tried using the Archive Date Header plugin found here http://www.kalsey.com/2002/08/archive_date_header_plugin/ but my results keep looking like the following:

 

2004: December

2004: November

2004: October

etc etc. Anyone have a clue why this isn't working as it should for me?

Posted

ok great, i figured it out. however, i read on another forum that the guy uses:

 

<MTArchiveList archive_type="Monthly">

<MTArchiveDateHeader>

 

<span class="archiveyear"><MTArchiveDate format="%Y"></span>

</MTArchiveDateHeader>

<a href="<$MTArchiveLink$>"><MTArchiveDate format="%b "></a>

</MTArchiveList>

 

with the following styling

CODE

.archiveyear {font-weight:bold; display:block}

 

where do i put the styling snippet of code in?

Posted (edited)

The styling would go into your style sheet for your blog. If you use several themes on your site and let users choose you will have to add it to each one. It can be placed anywhere in the style sheet.

Edited by TCH-Bruce

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...