Jump to content
zeegirl

Issues With Post Order

Recommended Posts

Hi all - So I have MT 3.35 installed for a client and everything seems to be working just fine, but for some reasn the posts show up on the category archive pages in ascending order. I do have the post order set to "descending" in the Weblog Display Settings section and the order seems to be correct on the blog's home page. However I need the archive pages to also displlay the posts in descending order.

 

Is there a setting somewhere I'm missing? I have a blog of my own set up this way (I believe it's an earlier version fo MT) and it doesn't have this problem. Suggestions?

~Zee

Share this post


Link to post
Share on other sites

That link should help, but I think you should be looking for an 'MTEntries' tag in the Category archive template rather than the 'MTArchiveList' tag. The default sort order should be newest at the top, but that can be overridden by the 'sort_order' attribute. See this page on MTEntries in the docs. It says:

When used as an attribute of MTEntries in the templates, the days, lastn, and sort_order attributes override their corresponding settings in the weblog's General settings menu.

When MTEntries is used in the context of a Category archive, the results are automatically filtered by category. 'MTArchiveList' is used to create a list of a specific type of entries outside of such a context. I use it, for example, to create a list of my monthly and category archive links on my side bar.

Edited by salguod

Share this post


Link to post
Share on other sites
That link should help, but I think you should be looking for an 'MTEntries' tag in the Category archive template rather than the 'MTArchiveList' tag. The default sort order should be newest at the top, but that can be overridden by the 'sort_order' attribute. See this page on MTEntries in the docs. It says:

 

When MTEntries is used in the context of a Category archive, the results are automatically filtered by category. 'MTArchiveList' is used to create a list of a specific type of entries outside of such a context. I use it, for example, to create a list of my monthly and category archive links on my side bar.

 

That worked perfectly - thank you all!

~Zee

Share this post


Link to post
Share on other sites

Join the conversation

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

Guest
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...