How to create Carrousel with post query content in Wordpress? [closed]

-3

I want to create an equal horizontal Carrosel of this site .

However, I want to pull the thumb , title and posts of a certain category.

    
asked by anonymous 30.01.2014 / 19:49

2 answers

2

For the car, you can use the Bootstrap or the jCarousel . And adapt the effect with some jQuery plugin of your choice.

And to do the part of Wordpress you can use code similar to this:

<?php
    query_posts ( 'cat=1&posts_per_page=3' );
    if (have_posts ()) : while ( have_posts () ) :
        the_post ();
        $thumb = wp_get_attachment_image_src ( get_post_thumbnail_id ( $post->ID ), 'thumbnail' );
        $url = $thumb ['0'];
?>
<!-- Carrosel aqui! -->
<?php endwhile; endif; ?>
    
30.01.2014 / 22:21
1

If it is the case that you actually implement the effect you want, I can not help you, but I have some information that I think is important for you. This a recent article that says this effect you intend to do has some drawbacks that can lead to it to "go out of style" this year. Home According to the article the time configured for the images to pass to the user in general is either too short or too long, compromising the experience of this with the site. Home The article also says that a good introductory video may be a better alternative to the effect.

    
30.01.2014 / 20:01