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 get posts published between a date and today?
- 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?
- post_name empty after wp_insert_post
- Query posts distinct authors
- How to get previous 10 days post from a specific date – WP Query
- Number of posts per page setting is not working?
- How can I display 7 posts on the home page, but 9 posts on the subsequent pages?
- 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
- Can’t show comments count per post outside loop
- How can I specify a category post on my home page
- Only display posts with comments
- Hide parts of the post content on the home page
- Show post titles only on the homepage
- Order post by year DESC and month ASC
- Displaying Page Title on index.php
- WordPress get posts by date without query_posts
- How to Display Post View Count
- Linking to page with all posts
- Different amount of posts on homepage than paged pages
- 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?
- Filter Posts By Tag
- Exclude posts with empty post_content in wp_query
- Exclude posts from homepage having a specified tag
- How can I remove posts of a certain category from homepage after a specified time period?
- Improving WP_Query for performance when random posts are ordered
- 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?
- previewing my posts on static page?
- Exclude newest post from category X but show rest
- How to make the post summary taller?
- Reset Popular post query?
- Displaying the last post on static homepage
- Static page does not show my posts
- Limit posts per author role (excluding admin) in home page
- Inserting custom data to the_post() during loop
- Properly display posts on homepage
- How To Get Posts With A Specific Word
- Best way to assign post position in a news site homepage? (no categories, no sticky posts)
- Why WP_Query(‘showposts=5’) shows only 1 post?
- is there a way to show the the post title after the image?
- Display posts with tag that matches current post title
- Why is querying posts messing up my pages?
- Display all posts that were published before full post on single.php
- Category Foreach keeps looping?
- How to show last post of each website of a MU wordpress in HomePage
- Blog post per page setting conflicting with custom WP_Query?
- How to exclude latest x posts from a paginated query?
- Two loops, one AJAX loop, exclude posts in first loop from second loop, loops are in different files
- Move first half of posts to one parent page, second half to the other page
- How do I display some posts fully on the homepage, and some as an excerpt only?
- 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
- Multi row post list
- posts_per_page option limits the number of Gallery items
- How to make multiple sections in home pulling posts category wise?
- wp_posts table: safely remove unused columns to save database storage
- Query Posts by Custom Field
- Order posts alphabetically: how to set order=asc in mysql query?
- How to order posts in an arbitrary order?
- How to automate featured posts number? [duplicate]
- Display Posts on Custom Page
- How to get posts from a current post’s month?
- Hide posts belongs to few categories in homepage
- Wrong post title displayed from loop
- Nested WP_Query breaking 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
- Conditionals if tags exist?
- 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
- Posts – display all posts except a post by an ID
- Counter is skipping post when I still want it visible [closed]
- How to Use index.php file for “Blog” Page And this is Not a Home Page
- Loop doesn’t exclude the specified category in 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
- Query for first 3 posts to change the look and feel