Skip to content

Commit

Permalink
fixup story/testimonial order direction
Browse files Browse the repository at this point in the history
  • Loading branch information
openmindculture committed Sep 19, 2024
1 parent 29706cd commit 73c8a8f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/inc/structure/stories.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,13 @@
<?php
$is_presorted = is_plugin_active('post-types-order/post-types-order.php');
$orderby = $is_presorted ? 'menu_order' : null;
$order = $is_presorted ? 'DESC' : 'ASC';
$args = array(
'post_type' => 'story',
'lang' => pll_current_language(),
'posts_per_page' => -1,
'orderby' => $orderby,
'order' => $order,
);
$the_query = new WP_Query( $args );
$resorted_post_ids = array();
Expand Down

0 comments on commit 73c8a8f

Please sign in to comment.