loop to show sticky posts in a featured slider WordPress: Responsive Themes


show more Creating a loop to show sticky posts in a featured slider provides you with in-depth training on Web. Taught by Morten Rand-Hendriksen as part of the WordPress: Building Responsive Themes show less
please wait ...

Creating a loop to show sticky posts in a featured slider

In the previous movie, we used the FlexSlider JavaScript library to add an advanced responsive featured-content letter on our front page. But right it's still running our dummy content. The next and obvious step is to add featured content from our own site to the slider. The way we are going to do that is by creating a custom template file that has a separate loop that will loop through only the sticky posts inside WordPress and then display them in the FlexSlider.

So before we do that, we need to make some of our posts sticky. I'll go up to the backend, go to Posts > All Posts, and then just select some random posts here. I'll select these four, go to Bulk Actions and Edit and from here, I can set the Posts to Sticky. Sticky posts are supposed to always appear at the top of the index page, and you can also use them for things like a featured-content slider.

Now that I have set some sticky posts--and you can see that they are sticky because they say so right her...

Creating a loop to show sticky posts in a featured slider
Video duration: 6m 52s 2h 55m Intermediate

Viewers:

Creating a loop to show sticky posts in a featured slider provides you with in-depth training on Web. Taught by Morten Rand-Hendriksen as part of the WordPress: Building Responsive Themes

Subject:
Web
Software:
WordPress
Author:
please wait ...