Latest category shown first in the category bar at the top of the page.

Posted in: Newsmag
Post count: 15

Hi.

Is there a way to switch the buttons in the category bar at the top of the category page to the latest instead of the oldest? I know there is not at way in frontend but is there a way in either css or php?

Thank you.

Image from a category

Site url: https://watchout.dk/

From Thomas Biehl, Mediehuset Copenhagen. Denmark.

Post count: 35449

Hi,
That can be done with some changes in the theme files, for this you’ll need to revers the array use for categories, the file that need to be edited is wp-content/plugins/td-composer/legacy/common/wp_booster/td_category_template.php on line 85 set -> https://i.imgur.com/561Q9RA.png
array_reverse($categories_objects, true) like this -> https://i.imgur.com/SOGuZ3t.png
I hope this will help you!

Post count: 15

Hi again Calin.

The thing is, we are not using Tag Div Composer but Visual Composer in our theme.

Thanks, Thomas.

Post count: 35449

Hi,
That should not be a problem, because the modification is in a standard template and those can not be edited with builders.
Thank you!

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