Help with Block Sort Order issue

Posted in: Newspaper
Post count: 6

Good afternoon,

On certain categories/archive pages I need to sort by a custom filed.

I’ve added the code to do this to my php files, and it works with the default wordpress theme.

But when I add this code to my Newspaper site, it seems the “block” sort order is overriding my custom code.

While I do think it is great that TagDiv provides so many sort order options, how do I choose “none” so I can have a custom sort order? I tried a few blocks but not all – is there a block that allows us to choose no or default sort order?

Sort Order Options

Thank you very much in advance,

Shawn

Post count: 27744

Hello,

This request is custom work because the change needs to be done in multiple files.
For each block, the theme makes a custom query depending on the filter set
The query it’s made in
td_data_source.php
To add a new sort order you have to edit
td_config.php
file and add your sort. Next step would be to generate the new sort in
td_data_source.php
by adding the required arguments to the query.

Thank you!

Post count: 6

Thank you!

PS – My suggestion for the next rev of Newspaper would be to add an option for “default” so changes to the WordPress category sort order via a plugin or changes to functions would be allowed 😉

Alternatively, a custom sort order could be added where the user could chose a custom field to sort by.

Thanks again,

Shawn

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