I think you can use the WPQuery
$the_query = new WP_Query( array( 'post__in' => get_option( 'sticky_posts' )) ); ?>
<?php if ( $the_query->have_posts() ) : ?>
<!-- pagination here -->
<!-- the loop -->
<?php while ( $the_query->have_posts() ) : $the_query->the_post(); ?>
<h2><?php the_title(); ?></h2>
<?php endwhile; ?>
<!-- end of the loop -->
<!-- pagination here -->
<?php wp_reset_postdata(); ?>
<?php endif; ?>
and for ordering your post you can use order and orderby see reference
https://codex.wordpress.org/Class_Reference/WP_Query
Related Posts:
- Can I set and show “important” post in my blog?
- Why I have this strange behavior when I try to exlude the featured post from posts visualization?
- How to show related posts by category
- the_author() returns empty string
- Display all posts from specific categories on a page
- How to exclude latest x posts from a paginated query?
- Display content from a specific category
- Template file for static posts page does not get loaded?
- How to display posts by current user/author in a custom page template?
- how to display full post with pagination on home page
- WordPress Posts Out Of Order after 3.1 Update
- featuring old articles without messing up with the archive
- Query only Posts from Both of Two Category?
- Insert custom div between posts
- Show post titles only on the homepage
- Order post by year DESC and month ASC
- WordPress get posts by date without query_posts
- How to Display Post View Count
- Linking to page with all posts
- Featured Posts for Category Pages
- How to link up “read more” on excerpts hack from WP Recipies
- Cannot Update A Post, 404 Error
- Function to show random posts from a category
- Hiding posts in a list from specified categories
- How would I get 1 latest post from a query for 5 posts?
- Exclude posts with empty post_content in wp_query
- How can I remove posts of a certain category from homepage after a specified time period?
- Create dropdown list post
- I would like to give special promotion for the first 100 posts in my blog? Can anyone tell me how to do that?
- Displaying the last post on static homepage
- Inserting custom data to the_post() during loop
- is there a way to show the the post title after the image?
- Display all posts that were published before full post on single.php
- How to show last post of each website of a MU wordpress in HomePage
- Blog post per page setting conflicting with custom WP_Query?
- Two loops, one AJAX loop, exclude posts in first loop from second loop, loops are in different files
- Editing the default page to show all posts, rather than most recent ones
- Random ajax load only works with posts_per_page set to -1
- Display an author’s posts on his own author page
- How to display only feautured/sticky listings on the homepage
- Order posts alphabetically: how to set order=asc in mysql query?
- How to order posts in an arbitrary order?
- How to get posts from a current post’s month?
- Wrong post title displayed from loop
- WordPress query_posts by tag doesn’t work anymore(?)
- While loop articles – if statement order
- do more action after I publish a post
- Retrieve only posts from a specific user in wp-admin/edit.php
- What file is the standard frontpage that lists all the posts?
- WordPress website loads more posts than expected
- Get the amount of posts on a current page
- How to Use index.php file for “Blog” Page And this is Not a Home Page
- query post limits
- why the same code got different results when using query_posts in functions.php and index.php
- Display Posts with template on a Page
- How to get posts published on the latest date?
- Getting Duplicate Posts on Home Page with Widget Added Between Posts
- How to check in functions.php if there is data in a WP_Query?
- Shortcode with ‘year’ parameter
- Post Filtering by GET URL parameters
- On what hook can I get the queried object’s final state?
- Get the most recently modified post date of most recently modified post
- WP_Query: Show 10 posts in date order, first three random
- Get post by tag
- Add hero image to home page (blog format) via the dashboard
- All categories displays the same posts
- I don’t want the complete article to show on homepage
- Query function not executed between element [closed]
- Echo the number of posts being displayed
- Exclude a category of posts in author template
- Display specific posts on home page
- WP_Query articles order by offset in collumns
- Getting posts from some categories plus some individual posts
- Get posts from current category?
- Conditionally exclude post from specific category on home page sidebar?
- Move position in post list for a custom checkbox column
- How to merge the content of posts that have the same title?
- Include Recent Post in Category
- How to mark only one post as Featured post?
- How to Make my Homepage Display a Single Specific Post?
- wp_query args with relation
- Querying posts from current category, using a variable as array argument
- Use special template for the first post in the loop
- Repeating post how to solve this
- Sort Events by Venue Title – Sort Post set by related post ids
- Need help writing loop to display posts by categories in separate divs
- How to remove related post from home page
- Query post category & remove any post id
- show latest authors blog post
- How to get only current images of a post
- Why I obtain this WP_Query strange behavior trying to select posts having a specific tag?
- 404 error on every post and page other than home
- How to limit the number of results for all query_posts on mysite
- Trying to display stick or featured post on homepage
- wp_query select if have comments
- Creating pages and getting their values from the database table
- How to limit post query to only return a total count of items with certain post statuses?
- Not displaying any articles on a custom made file
- Sort Posts Alphabetically Based on Specific Category (Divi)
- How to change url of posts?