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
- Is it possible to Schedule Attachments in WordPress?
- Is post ID number always incremental n+
- post__in for get_posts with a dynamic array
- Create custom page in WooCommerce
- How to hide a post from ‘Recent Posts’ widget?
- Create a separate JS application for an individual post?
- post_parent is 0 when uploading new files
- Divide Loop Into Days & Categories
- “next_posts_link” and “previous_posts_link” display me NOTHING
- WordPress – Hide posts in admin from user who did not write them
- Understanding and using metaboxes in posts
- How to display different number of posts
- What part of template to edit to remove category name from the top of posts?
- Register post status, exclude from searches
- Ajax Dynamic Archives not showing correct results
- Load post attached images on a single page site with fancybox
- Anyway to grab author name and featured image in an embeded in inital array of posts outside of loop?
- use wpml_post_language_details function other plugin based on $post->ID [closed]
- Non-existant URL redirects to existant one
- Calling Different Custom Post Timestamps in a table
- Exclude the first ‘n’ number of posts of a tag from home page?
- wp_posts table: safely remove unused columns to save database storage
- Remove current category from post but display all others
- Why won’t pagination work?
- How to add some html formated text to every new post in WordPress
- Using system date format
- Posts and Pages: 404 Page not found
- When sending a newsletter -not with wordpress- the server has 100% cpu [closed]
- changing parent_id on post
- How to display list of results
- Some blog posts containing source code fail to save draft or publish
- Problem paginating a subquery on a post
- Trigger on DB make problem on wordpress?
- How to show WP admin edit page within template page/post?
- Change post value in WordPress
- Automatic Table of contents with categories and posts
- Create blog post from external source and set publication date
- How do I prevent draft posts from being accessible publicly?
- How to filter out post from a category not its subcategory in wordpress dashboard
- How can you control what a user is allowed to post in the backend?
- Hide Certain Tags on Single Post Page
- new blog post does not appear in blog after publishing
- wordpress taxonomy results
- Deleling wordpress posts permanently still have IDs
- wp trim function not working
- Import alt text in set_post_thumbnail
- Display post count on archive page in reverse order
- Restore posts, but only posts that exist in my database backup