I fixed it by removing all the items in the item class and adding a little
<?php $i=1; while ($i <= 1) { ?>
<div class="col-md-6 nopadding view view-ninth" style="padding-left:4px; padding-right:4px;">
<?php the_post_thumbnail('large'); ?>
<div class="content">
<h2><?php the_title() ;?></h2>
<p><?php $excerpt = get_the_excerpt(); echo string_limit_words($excerpt,15) . '...'; ?></p>
<a href="#" class="info">Read More</a>
</div>
</div> <?php $i++;}?>
Related Posts:
- WordPress get_posts function, 1300 lines long
- Exclude a category if post is only in that category using wp_Query
- Too slow when using both ‘tax_query’ and ‘meta_query’ both in WP_Query
- Use of caller_ get_ posts
- Tax_query terms ID’s using variable
- Pagination custom query
- WP_Query and name__in
- Query certain amount of posts from multiple dates
- Order posts by tags count?
- Orderby = none not working [duplicate]
- Add inline HTML to posts published within last 24hrs
- Querying Multiple Custom Taxonomy Terms
- Unable to combine “search value” and “tax_query” using WP_Query
- How to extend tag and category “Related Posts” query to custom post_type if the first 2 terms have no posts
- WP_Query search for whole words
- WP_QUERY returns empty set when fired from a WP-CRON scheduled event
- Interupting the loop with extra divs to display data, and how to get it to work responsively
- Including only current user’s posts in search
- WP_Query, tax_query and term_meta: How to?
- How do I reset this wp_list_categories query?
- Refine search results using WP_Query
- How to pass many ids in post__in?
- Query with a meta value inside a given range
- Pagination of a WP_Query Loop in a child-page page template
- Add condition of user capability in WP_query
- add_filter() depending on search term
- How do I run through a WordPress loop called from a filter function?
- How do I get the title of a category in a custom loop?
- Is it a good idea to improve meta query performance by adding tax query?
- WP_Query: Group events by year, sorted DESC; then by date for each year group, sorted ASC
- How to display user order by role
- WP_Query | Tax_Query Relation | Unable to use ‘OR’ as it then allows all products, help me finish my query?
- hide custom post types with specific meta key ON admin backend
- Orderby listing issue
- Check if loop has any categories?
- WordPress query with items from more than one selfdefined taxonomy as `term` argument
- Current post in AJAX call is always zero
- Multiple filter conditions for WP_Query
- Get all fields inlcuding “ACF” (Advanced Custom Fields) columns in wp_query
- get_post_meta in WP_Query
- WP_query : Force last posts number over Reading Settings
- Order by most used tag
- WP_Query results stored in variables
- infinite loop in wp_query using simple query
- How to display the number of posts in a category using WP Query
- wp query for popular post with simple field
- Parent and child categories
- how can I get seperate the HTML in the_content(); output?
- Is wp_reset_postdata always necessary?
- wp_query: implicit paging? I get less posts that I should
- Specific html within wordpress loop
- WP Query Meta Value – How To Identify Specific, Unique Values?
- Get user first name from custom endpoint
- Shortcode Not Working in Slider When Added To Post Title
- Displaying pages on an archive page
- Multiple pagename WP Query
- How does WP generate the default $query in WP_Query based on the URL?
- How I can repeat 2 HTML templates in a WordPress Query?
- Loop categories by recent post
- custom page with post content using read more
- Meta query with compare by more than 2 fields
- Offset WP_Query by negative 1
- WP_Query orderby random do not repeat infinite scroll – one loop
- How to apply pre_get_posts to a custom query?
- meta_query returning excluded result
- How to pass the current content of $wp_query to a new page?
- how to put thumbnail below category’s title?
- WP_Query retuning empty array in rest api
- Passing a SQL query to the WP Query
- Why when I using infinity scroll the one post loads over and over?
- get_posts query is taking about 40 seconds to execute
- Custom WordPress post query for displaying time-released content on website
- WP_Query by MAX post_id?
- Adding nofollow to all the post links in get_posts with pre_get_posts or WP_Query
- WP Query with meta queries
- Query post by Category and custom file (ACF)
- Regarding a custom loop and output HTML tags
- Slow Query with more 100 products
- Taxonomy archive, categorised by other taxonomy, not hiding empty taxonomies
- Filtering ‘Featured’ posts from a batch of category IDs
- Migrating mysqli query to wp_query
- Second WP_Query loop shows data from main query
- My entry results are not consistently alphabetized
- Speed up WP_query with meta comparing dates
- How to show all the associated posts with specific date of data metabox?
- How to order by datediff in WP loop?
- Custom query for tag and custom tag from 2 post type
- wpdb get_results() returns only 2 rows
- Search Functionality broken by the wp 4.2 update
- Issue attempting a wp_query_posts with tags
- Divide WP_Query posts by date & post type
- Custom query to show posts
- New WordPress WP Query using posts from certain categories
- Taxonomy related query not working
- error with $query->have_posts()
- Multiple Orderby is not working right
- WP query based on two meta queries
- Display Featured image from custom post type category (custom taxonomy) wise
- new WP_Query with order args – no more distinction between categories
- How to make OR condition in WP_Query