Tagged: ,

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1481

    Hi,

    i wood like to change slider to specific page id’s not category’s,

    I know i need to modify this line, but cant get working correctly.

    $additional_loop = new WP_Query("cat=".$k_option['mainpage']['feature_cats_final']."&posts_per_page=".$k_option['mainpage']['feature_count']);

    I want to display only:

    $additional_loop = new WP_Query("page_id=18,46,60,71,82"."&posts_per_page=5");

    but i cant figure out what is going wrong for me,

    Please help

    Edgar

    #35370

    $additional_loop = new WP_Query(array('post_type' => 'page', 'page_id'=>18,46,12,7,18));

    dose not work, only firts page apeers, Hmmmm :(

    any suggestions?

    #35371

    Try this, it worked for me :

    Code:
    $additional_loop = new WP_Query(array(‘post_type’ => ‘page’, ‘post__in’ => array(18,46,12,7,18)));

    You still have to select the number of page (5) in the admin panel.

    I’ve heard the author of the theme is working to include this option in a next update, could be helpful though ! :)

    #35372

    $additional_loop = new WP_Query(array('post_type' => 'page', 'order' => 'ASC', 'post__in' => array(18,46,60,71,82,99,109)));

    Just addet order=> ASC and it ex what i was looking for,

    thx Vehem

    #35373

    Hey,

    I have set up pages instead of posts in the slider at http://napraforgomag.hu/. However, I wasn’t able to find out how to change the description in the slider, just below the title of the slide. Is that possible to manage the text appearing in sliders?

    Thank you!

    #35374

    Hey,

    I think this is not possible with pages because they don’t have an excerpt field/option.

    #35375

    Hello,

    I have solved it: I inserted a MORE tag before the text I did not want to see in the slider.

    Have a great day!

    #35376

    Glad that you solved the problem :)

Viewing 8 posts - 1 through 8 (of 8 total)

The topic ‘How to Change slider, so its display not category but spesific page ID's’ is closed to new replies.