{1 - 24} GreyGrey
{25 - 49} GreenGreen
{50 - 499} BlueBlue
{500 - 4999} OrangeOrange
{5000 - 24999} RedRed
{25000+} BlackBlack

Please confirm that you would like to report this for an admin to review.


How do I change the slider to use Pages instead of posts?

I would like an alt-homepage where the slider uses the pages instead of the posts.



Confirm that you would like to Remove Email Alerts for your question. You cant undo this and you will not be able to re-subscribe.


Tags

1 Answer

Hello,

You need to edit the alt-homepage file inside the theme folder, then check for this line of code and add this, we are going insert this argument, 'post_type' => 'page', so the result will be:

$args = array(
'post_type' => 'page',
'posts_per_page' => 10,
'post_status' => 'publish',
'post__in' => get_option("sticky_posts")
);

Confirm that you would like to select this answer as the "Best Answer" to your question. This will bring this answer to to top and be highlighted as "Best Answer". You can always change this if a better answer is given.


You must be Logged In to Answer this Question

Already a Member, Log In
Not a member yet? Sign Up