Before I was using function.php for ASC using the codes below.. Well, modifying in every update, sure đ
add_action('wp_head', 'custom_change_posts_order');
function custom_change_posts_order() {
global $query_string;
if (is_category(array(33,34,35,36,37,38,39,44,48,49,51,53))) {
$posts = query_posts( $query_string . '&orderby=date&order=asc' );
}
}
Now, I’ve started to use “Nomad Demo” and this is not working.. I think I need to change something about POST LOOP but I don’t know how. Well, my knowledge about codes is minimal..
Hi,
The demo uses a cloud category template with a loop, so that code may not work. Maybe you used default category templates before and the code worked. I believe adding an option to sort the loop elements is already on our list of requests, so it may be added in coming updates.
Thanks
First, thank you Simion for your answer, you guys doing great job.
It’s good to know “sort the loop elements” in your list but how I understand reading some documents or some post in this forum.. “from old to new” is not part of the wordpress philosophy. In that case, it won’t be my solution.
So, maybe you can provide some partial solution or some small codes.. that can be works for me (if it possible, sure).. I conform with this even if I need to modify after every update as before
Block, flex blocks and grids do have that sorting method, they always had it. I believe the same options will be implemented for the cloud loop element.
You could replace the loop in the category templates with a block (filtered by specific category and sorted by oldest), but that would require to create a template for each category. Sorry again for the inconvenience.
Ok, thank you. I know there was the sorting method but, maybe I’m wrong, when I bought the themes, I remember there wasn’t “oldest” between options.
Anyway, I thought that you said, create a template for each category but a lot of works for me.. now I’m only waiting.. Thank you one more time for your attention..