Tag Info

New answers tagged

1

instead of a counter variable, you can use the build-in loop counter; as I don't know how you need to wrap the posts into the individual divs, here just an example structure (only to be used with 5 posts per page): <div class="col-lg-12"> <div class="row"> <?php if ( have_posts() ) : ?> <?php if ( ...


0

What I would do is use multiple loops while tracking the ID of the post recorded in the previous post and skipping over it in the next loop so it is not repeated. I'll show you what I mean. I'm also making use of the WP_Query class. <div class="container"> <div class="row"> <?php $args = array( ...


1

You don't need to create additional functions, just re-use what you already have and tweak it a bit: function theme_add_bootstrap() { wp_enqueue_style( 'bootstrap-css', get_template_directory_uri() . '/third_party/bootstrap/css/bootstrap.min.css' ); wp_enqueue_script( 'bootstrap-js', get_template_directory_uri() . ...


0

Have you seen this? Unsure if it will help but has some good info in it http://davekiss.com/ie8-respond-js-and-wordpress/


0

I solved it with a custom query $args = array( 'post_type' => 'slide', 'orderby' => 'date', 'order' => 'ASC' ); $i=1; $slide_query = new WP_Query($args); while ( $slide_query->have_posts() ) : $slide_query->the_post();



Top 50 recent answers are included