Support » Theme: Hueman » Featured posts from slider also visible in post list, except latest one ?

  • Resolved drchewbacca

    (@drchewbacca)


    Hello there, Hueman support !

    I’d like to know if it’s possible to do the following. The homepage slider looks awesome (so does this whole theme, actually). But it doesnt seem to rotate automatically (timer), at least on my site : http://www.geekdad.fr.
    Therefore, all featured post except the most recent are not visible, unless the visitor clicks on the slider’s arrows.

    What I’d like to do is this :
    – keep the slider as it is, with several posts in it
    – have the posts still appear below the slider, in the main area for posts (where the most recent not featured posts are shown)
    – except for the most recent post visible in the slider, in order to avoid having twice the same post visible on page at first

    Can it be done easily ? (ie by tweaking some custom CSS or something like that)
    If complicated, nevermind, I’ll stick with the current way it works.

    Thanks !

Viewing 6 replies - 1 through 6 (of 6 total)
  • Hi,
    in this thread http://wordpress.org/support/topic/featued-post-slider-bar-not-sliding?replies=7 you’ll find everything regarding the slider, timer etc.
    All posts in slider must have “featured” slug and same category (you can name it whatever you like, but slug has to be as mentioned).

    If I missed something, feel free to post a question – if not, pls mark [resolved].
    Mike

    Thread Starter drchewbacca

    (@drchewbacca)

    Hello and thank you

    This is not exactly what I was looking for, but that’s better than nothing.
    I managed to add some automatic sliding to the slider.

    What I was asking is how you can make it that the posts in the slider are also displayed in the main area of the home page. Because Hueman removes them from display (probably to avoid having twice the same post on homepage, both in slider and below). I’d like to keep this behavior for just one post, the most recent one.

    Do this except make sure the box is checked.

    Thread Starter drchewbacca

    (@drchewbacca)

    Ok, thank you.
    I didn’t notice this setting.
    The only detail that still bothers me is that I would like the latest post (and only the latest one) from the slider to be excluded from the content area.
    But that will do it.
    Thanks.

    Put this in your functions.php. And chose in my example what categories IDs you want to remove from homepage blog listing. Rest you dont need you can simply delete.

    Put there ID of your category you use for slider, and it wont be visible beneath.

    // Exclude category from homepage
    add_filter( ‘pre_get_posts’, ‘my_exclude_category’ );
    function my_exclude_category( $query ) {
    if ( $query->is_home ) {
    $query->set( ‘cat’, ‘-13,-11,-8,-584,-23,-24,-25,-26,-4,-5,-27,-2,-1,-7,-3,-15,-21,-22,-18.-19,-17,-20’ );
    }
    return $query;
    }

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Featured posts from slider also visible in post list, except latest one ?’ is closed to new replies.