How can I change the order in which posts are displayed in emails? Home › Forums › Newsletter Plugin Support › How can I change the order in which posts are displayed in emails? This topic has 8 replies, 3 voices, and was last updated 6 months, 1 week ago by Anonymous. Viewing 9 posts - 1 through 9 (of 9 total) Author Posts April 22, 2024 at 11:10 pm #325560 whitewavexParticipant Hello. How can I change the order in which posts are displayed in emails? I need the older posts to be displayed first, and the latest ones at the end. How can I change the output order (block Blog Posts)? Thank you April 23, 2024 at 10:09 pm #325611 MichaelKeymaster Hello, at the moment we don’t have such an option. I’ve added this to our feature request list, which will be evaluated by our developers. Thanks for your feedback! Michael April 24, 2024 at 12:49 am #325619 whitewavexParticipant If you would indicate in which file I can make changes to change the sequence, I would do it myself. Thanks April 24, 2024 at 1:32 pm #325696 whitewavexParticipant I am trying to adjust the sorting options in a file newsletter/email/blocks/posts/block.php $filters[‘order’] = ‘ASC’; $posts = Newsletter::instance()->get_posts($filters, $options[‘language’]); But it doesn’t work. Why? May 2, 2024 at 10:51 am #325951 MichaelKeymaster Hello, that seems correct, I don’t know why it shouldn’t work in your case. However, unfortunately we do not provide support on custom code, sorry. Regards, Michael May 2, 2024 at 11:57 am #325956 whitewavexParticipant Thanks. I will try to test it. May 10, 2024 at 9:45 am #326279 AnonymousParticipant Hi Whitewavex, I have the same issue. Do you have resolved? May 10, 2024 at 10:59 am #326287 whitewavexParticipant Hello Yes, I solved this problem. You need to add the following code to the plugins/newsletter/email/blocks/posts/block.php file: $posts = array_reverse($posts); Add this code before the block: if ($posts) { $out[‘subject’] = $posts[0]->post_title; } The array with posts will be reversed. May 10, 2024 at 11:47 am #326289 AnonymousParticipant I have resolved starting from your code. Thank you! here you can find my customization to show custom order posts $filters[‘orderby’] =’menu_order’; $filters[‘order’] = ‘ASC’; Author Posts Check out our premium plans with priority support. Viewing 9 posts - 1 through 9 (of 9 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In