ForumJoin our community

The order of the vehicles displayed when I first pull up the inventory page is the most recent posts of post_type equal to vehicle are displayed first. I would like to change the sort order of the listing to show older vehicles first.,

I suspect that this is done through a WP_Query object. The results are stored in $wp_query. I can not locate where the WP_Query search is conducted in the page archive-vehicle.php.. Can you provide some direction..

Thanks,
Phil
Comment
There are no comments made yet.
Accepted Answer
Giang Accepted Answer Pending Moderation
  1. Tuesday, 21 November 2017
  2. -
  3. # Permalink
0
Votes
Undo
Hello,

We have already solved this problem together via tickets.

Pls feel free to contact us again if you need any further assistance :D .

Best Regards,
Comment
There are no comments made yet.
Philippe Orion Accepted Answer Pending Moderation
  1. Tuesday, 14 November 2017
  2. -
  3. # 1
0
Votes
Undo
Further reseach shows that the call stack is as follows
1. do_action('init') - wp-includes/plugin.php:453
2. tz_autoshowroom_includevisual() - wp-content/plugins/tz-autoshowroom/admin/vc-extension/vc-init.php:33
3. autoshowroom_get_vehicle_data() - wp-content/plugins/tz-autoshowroom/admin/vc-extension/visual-composer/vc_theme/vehicle-feature/vc-theme-feature-vehicle.php:6
4. get_posts() - wp-includes/post.php:1689
5. WP_Query->query() - wp-includes/class-wp-query.php:3248
6. WP_Query->get_posts() - wp-includes/class-wp-query.php:2856

these were taken from the plugin named Query Monitor
Even with this information, I can not reverse the sort order of the vehicles displayed. Please Help..
Comment
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this post yet.
However, you are not allowed to reply to this post.