Try this. It should work
<?php
$args = array(
'post__in' => get_option('sticky_posts'),
'showposts' => 1,
'orderby' => date,
'order' => 'desc'
);
$sticky = new WP_Query( $args );
if ( $sticky->have_posts() ):
while ( $sticky->have_posts() ): $sticky->the_post();
echo the_title();
endwhile;
endif;
wp_reset_query();
?>
Related Posts:
- Keep featured content post in homepage with original order
- Template file for static posts page does not get loaded?
- 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
- How can I specify a category post on my home page
- Hide parts of the post content on the home page
- Show post titles only on the homepage
- Displaying Page Title on index.php
- Linking to page with all posts
- How to link up “read more” on excerpts hack from WP Recipies
- Can I set and show “important” post in my blog?
- How can I remove posts of a certain category from homepage after a specified time period?
- How to make the post summary taller?
- Static page does not show my posts
- Limit posts per author role (excluding admin) in home page
- Properly display posts on homepage
- Best way to assign post position in a news site homepage? (no categories, no sticky posts)
- How to show last post of each website of a MU wordpress in HomePage
- 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
- Hide posts belongs to few categories in homepage
- What file is the standard frontpage that lists all the posts?
- 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
- Single Post in Tab/Slider
- Getting Duplicate Posts on Home Page with Widget Added Between Posts
- Add hero image to home page (blog format) via the dashboard
- Custom home page with full post for first one only
- Inserting an example of the last 3 post on to the homepage
- I don’t want the complete article to show on homepage
- Post is in descendant category not working in home.php
- links to posts not working on homepage
- how many visitor open this post? [closed]
- What’s a theme that properly handles previews of different types of posts?
- Conditionally exclude post from specific category on home page sidebar?
- “Blog pages show at most” in setting not working
- Why is WordPress showing a blank excerpt for just one of my posts?
- How to show only homepage in google results instead of privacy, contact pages
- Include Recent Post in Category
- How to Make my Homepage Display a Single Specific Post?
- Make current post the homepage
- Blog featured images disappeared on my homepage
- Blog images not showing on homepage
- Display post on main page with thumbnail
- How to remove related post from home page
- Post as frontpage – avoid duplicate content
- Link post to blog from a static page
- 404 error on every post and page other than home
- Home page: using custom fields for posts and pages
- How to have more post in a page than in your home page
- Display content from specific category
- How to specify a post category for the home (posts) page?
- Get WordPress post content by post id
- Get page ID of page that is set as the posts page
- Get Posts Under Custom Taxonomy
- How to limit the number of posts that WP_Query gets?
- Stop WordPress Wrapping Images In A “P” Tag
- When is the ‘post_content_filtered’ column in database cleared by WordPress?
- Turn a URL into an Attachment / Post ID
- GET the excerpt by ID
- Stop WordPress automatically adding tags to post content
- Determine if page is the Posts Page
- How to get ‘post_content’ without stripping tags?
- How to add an admin notice upon post save/update
- Print Current Post Index number within Loop
- Should we trust the post globals?
- Optimize post insert and delete for bulk operations?
- Get the Current Page Number
- How do you add thumbnail support for custom post types?
- How to mark every 3rd post
- Change Posts per page count
- How to display related posts from same category?
- Can posts have parents?
- Is there a action hook for the “Empty Trash” button?
- How to end the excerpt with a sentence rather than a word?
- How do I check if I linked to a post before I delete it?
- How to change the case of all post titles to “Title Case”
- Appending content with broken in 4.4
- How to get posts published between a date and today?
- ZIP up all images displayed in a [gallery] and offer as download link
- How to detect single.php (but not single-portfolio.php)?
- How to check if post meta key exists or not in wordpress database
- How to remove a column from the Posts page
- removing inline styles from wp-caption div
- What is the use of to_ping and pinged column?
- How to use “Add link” pop up for a WordPress widget
- Remove Categories / Tags From Admin Menu
- How to retrieve text only from wp_content() not from wp_excerpt()?
- Stop WP from creating “Sample Page” and “Hello World!” post
- Where is the old post permalink slug stored?
- How to Create Editable Blocks of Text for the Homepage?
- Keyboard shortcut for updating a page or post?
- Add custom Attachment Display Setting for images
- Rewriting post slug before post save
- Apply the_title() filter in post & page title, but not in menu title
- How to Change Order of Posts in Admin?
- is it possible to get next_post_link
- Get post content by ID
- How to get post creation date?