Thanks for the response. Managed to find what the cause was. Its caused because of sticky feature, my posts was not sorted accordingly.
So, can anyone suggest me how do I remove saved sticky feature field from the database?
Any help would be much appreciated!
Related Posts:
- Ignoring initial articles (like ‘a’, ‘an’ or ‘the’) when sorting queries?
- Sorting: custom query with orderby meta_value_num THEN by title
- How to get order of posts?
- Meta query with order by another custom field
- How do I sort posts with multiple pages
- WP_Query: Group events by year, sorted DESC; then by date for each year group, sorted ASC
- Understanding the orderby in WP_Query?
- Help ordering Post loop by two meta values
- orderby ignored by wp_query
- How to sort store location by specific category order in WP store locations
- How to sort wordpress posts already selected by WP_QUERY
- Order by value of Custom Field using url string
- WP Query with meta queries
- Order 2 meta_queries differently in WP_Query?
- Display three sequential posts on each page load, without repeating previous
- Sorting: custom query with orderby meta_value_num THEN by title
- query_posts with sorting on a custom datestamp
- WP_Query orderby post__in remains ineffective in the Loop [closed]
- WP_Query orderby date not working
- Order by DESC, ASC in custom WP_Query
- Secondary Sort (fallback) for WP_Query
- Query Posts in a Predefined Order
- Sort posts by category name and title
- How do I order pages and categories by ID or name in the same query?
- WP_Query ordered by custom field that is a date string?
- WP_Query -> sort results by relevance (= most tags / taxonomy terms in common)
- How to order a post type with meta_value_num and if meta_value_num does not exist then order by date
- Order posts ascending with number in title
- List taxonomy terms plus their latest post ordered by post date
- Sort by meta key on archive page
- WP_Query order by date in meta_value
- Query Set Order By Author
- WordPress: Keep order of query_posts list of post ID’s using post__in
- How to use order RAND() on WordPress?
- Show all parents and children in custom post type in right order
- How to make orderby ‘meta_value_num’ OPTIONAL?
- WordPress WP_Query orderby being overwritten
- Order Posts by meta value AND published date
- How can I pick a single post from the latest 3?
- How to orderby meta_value_num with dollar ($) sign
- Order WP_Query by multiple fields, subtracting them from one another
- pre_get_posts order by not working
- SQL: What is wrong with the following query (generated by WordPress WP_Query, ordering prices)
- Order By table field comment_status in WordPress > 4.0
- WP_Query order result by date AND meta_value
- Wp_query: sort by PHP variable
- Order by title without taking into account ‘the’
- WP_Query orderby author__in
- How to orderby multiple meta fields if some fields are empty
- WP_query sorting can’t sort danish letters (æ, ø, å)
- Order ascending is ignored in meta query?
- Gallery shortcode numerical sorting
- How to filter a query by multiple meta keys and order by other meta keys
- Multiple Orderby’s using random order WP_Query
- Sort WordPress Posts Meta value by Week not Day
- Debugging wp_query orderby for taxonomy
- WP Query – order posts by meta field first and then order the rest
- Advanced WP_Query with meta_query, orderby?
- How to order WP_Query to group results?
- How to Order a list of taxonomies? orderby?
- Order is breaking wp_query
- Sorting search results with custom dropdown
- How to use a dropdown to filter posts by custom field
- How do I sort this custom list of sticky posts
- WP_Query with multiple orderby NOT working with ASC and DESC, what’s wrong?
- Filtering by multiple conditions in the loop
- Orderby two meta fields not working
- Randomly select one of last 3 posts
- how to retrieve WP_Query without ordering by date [duplicate]
- WP_Query orderby
- What’s wrong with this meta query? (order by meta key, then title, doesn’t work)
- How can I order a post query’s results based on the number of matching taxonomy terms?
- Sort by price wpdb
- Custom order of posts in wp_query and different taxonomies
- WP_Query random ordering not working since 5.4
- WordPress Query custom ordering by temporary variable
- Get authors list and sort them by recent posts
- Order by meta date with a thousanth of a second defaults to post order
- How to get_comments() ordered by date and parent?
- Sort posts on custom field AND after that sort on date?
- WP Query. Ordering posts by another post types meta
- Best way to query posts and order by relevancy to query
- wp_query sorting – one specific meta_key value at last and then sort by create date
- query_posts based on a meta_key
- Order posts by more than one variable (meta_key and publish date AND time)
- Create custom order sortby based on array of id
- Wrap group of wp query posts to parent div by date/year
- Sort by meta key within same day
- Find by post_meta, then sort by post_meta, then sort by date (wp_posts)
- Order Custom Field by Price
- How to sort a WP_Query array by post_name after an array_merge();
- Show sticky post before other WP_Query
- Order by multiple meta keys on wordpress
- Sort Posts with custom meta key by default which is currently set as optional
- WP_Query with several meta_query-statements and order by meta_value
- Why does wp_query only display the most recent post when using order ASC?
- How to put posts with some taxonomy on top of others in `pre_get_posts`
- WP_Query sort by ACF date field (newest first) with blank dates first
- Sort by multiple columns using get_posts
- new WP_Query with order args – no more distinction between categories