Sort posts on Custom Taxonomy Page

Posted in: Newspaper
Post count: 8

Hi,

I’m working with a site for a magazine and I’m using Newspaper as the theme for the site.

They publish all the articles from their issues on the site, and we’re using a custom taxonomy to categorize the articles into the different issues. I’ve created a specific template to show the custom taxonomy (‘taxonomy.php’), which is a slight modification of the standard archive-template.

The main feed of articles on the site is sorted from the latest to the oldest (the latest article appears first on the site). My problem now is that I want to sort the articles on the issue-pages (that are using taxonomy.php) in reverse order compared to the main feed (from the oldest to the latest).

Can anybody help me with that?

My latest try is to point taxonomy.php to ‘loop-taxonomy.php’ (which is a copy of ‘loop.php’ where I try to sort the posts differently) instead of ‘loop.php’, but with no luck. The modification I’ve done to ‘loop-taxonomy.php’ is this:

//sort posts
query_posts($query_string . '&orderby=date&order=ASC');

if (have_posts()) {
while ( have_posts()...

Thanks in advance!

Post count: 22421

Hello,

Sorry but the theme support does not cover custom modifications. One of our users can maybe provide some help on this task.

Thank you!

Post count: 8

I understand. But you can’t push me in any direction?

Anyone else that can help me?

Post count: 22421

Sorry but this is a very complex task you are trying to make and it will require custom modifications in multiple theme files. It is not a simple modification as if it was, our theme would already have this functionality.
We suggest hiring a freelancer to help out in this task if you do not know how to do it.
Thank you for your understanding.

Viewing 4 posts - 1 through 4 (of 4 total)
The forum ‘Newspaper’ is closed to new topics and replies.