Support » Theme: Hueman » Slider showing Pages

  • Hello

    Is it possible to make the slider show pages instead/with aricles? a way to insert such slider inserting a code maybe in template?

    thanks

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter zoomzoom2

    (@zoomzoom2)

    I did something wrong that nobody answers me 🙂

    You did nothing wrong, it’s just one of those questions that are a bit harder to answer as it involves quite a bit 🙂

    I can’t really help more than saying that: You need to create a new partial similar to /inc/featured.php. Remove the is_home/is_frontpage part, and modify the WP_Query to something that will display pages instead of posts. Then you need to include the new partial like this where you want the slider to appear, in your custom page template:

    <?php get_template_part('inc/page-slider'); ?>

    (if your new file is called page-slider.php)

    Thread Starter zoomzoom2

    (@zoomzoom2)

    Thank you

    I did what you told and it works however I have no idea what to change exactly in the WP query to display pages instead of posts… Can you help please?

    what should i change here:
    <?php
    // Query featured entries
    $featured = new WP_Query(
    array(
    ‘no_found_rows’ => FALSE,
    ‘update_post_meta_cache’ => FALSE,
    ‘update_post_term_cache’ => FALSE,
    ‘ignore_sticky_posts’ => 1,
    ‘posts_per_page’ => ot_get_option(‘featured-posts-count’),
    ‘cat’ => ot_get_option(‘featured-category’)
    )
    );
    ?>

    I cannot help You, but I need the same function. I have a page based site and I would like to use pages instead of posts…

    @lysergic73: If you require assistance then, as per the Forum Welcome, please post your own topic.

    @esmi: I didn’t want to duplicate topic because I think that Zoomzoom2 request and mine need same solution 😉

    sry if I’m wrong

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Slider showing Pages’ is closed to new replies.