How to Display the Latest Sticky Posts in WordPress

Published: 03 April 2015
on channel: WPBeginner - WordPress Tutorials
6,519
10

WordPress has the ability to add sticky posts to feature them on your site. When you make a post sticky it shows above your new posts only if your theme permits it. In this video, we will show you how to display the latest sticky posts in WordPress.

If you liked this video, then please Like and consider subscribing to our channel for more WordPress videos.

Text version of this tutorial:
http://www.wpbeginner.com/wp-tutorial...

Check us out on Facebook:
  / wpbeginner  

Follow us on Twitter:
  / wpbeginner  

Join our circle on Google+:
https://plus.google.com/+wpbeginner/

Checkout our website for more WordPress Tutorials
http://www.wpbeginner.com/

Summary of this Tutorial:

To make this happen you will need to add some code to your functions.php file or as a site specific plugin.

This tutorial is for intermediate level and will require some html/css and WordPress theme knowledge.

Start by copying and pasting our code in your functions.php file.

The code gets the latest 5 sticky posts and displays them with the title and link.

We have also added shortcode functionality so you can display these on a post page or widget on your site.

You will need to add an extra line of code if you want to put in in a text widget.

Related Links:

Site Specific Plugin

http://www.wpbeginner.com/beginners-g...


Watch video How to Display the Latest Sticky Posts in WordPress online without registration, duration hours minute second in high quality. This video was added by user WPBeginner - WordPress Tutorials 03 April 2015, don't forget to share it with your friends and acquaintances, it has been viewed on our site 6,519 once and liked it 10 people.