You could define an array $fixture = array ('1st_XI','2nd_XI')
and loop through that, like this:
foreach ($fixture as $value) {
$firstXIFixtures = new WP_Query(array(
...
'value' => $value,
...));
... the html you use to display the column
}
Related Posts:
- Get all posts as an array ID => Name
- Search.php gets metadata from first post
- Query multiple custom post types in single loop
- Inject post (from specific category) between posts in Loop
- Build a content and excerpt grid loop with paging and options for # of posts
- Guidance with The Loop for CMS
- Alter secondary loop to exclude posts from current page category
- How can I loop into two different DIVS without repeating the DIVs
- WordPress loop specific thumbnail size
- How to get to a specific position in wp_query?
- have_posts() execution failure
- Using foreach loop breaks
- Recent Posts Not Showing Only On A Specific Category Page [closed]
- How Can I use WP_Query to Only Display 1 Post from Custom Post Type if Query Returns Posts with Matching ID in Custom Field
- Syntax error when I try to insert my loop into an unordered list? [closed]
- WP_Query fails despite having 1 post
- wp_query get the 2nd post
- How to get post ID in a Page?
- Display an image if odd number of posts in grid
- How to add div blocks after certain set of post
- How to overwrite orderby with add_query_var
- What file have I to create in my custom WordPress theme to show all the post belonging to a specific category?
- Why in my theme I can’t see all the statics content under the posts?
- get_the_ID() in the footer returns wrong value
- Getting posts to exclude from array
- home.php show blog posts as grid view
- Custom post type permalinks do not appear using the link functions
- WP_Query multiple post results
- Do not duplicate posts with multiple categories in multiple loops
- Infinite Loop – WP_Query
- Dividing the loop to style post differently
- How to extract information from a wp_query result?
- Toolbar Hidden in a Virtual Page
- the_post(); prints out style text into my HTML?
- Search AJAX Filters – Multiple Query Loops Into One Loop (Optimization)
- Wp Query : Order by distance lat,lon
- in_array not working on dev server but works on localhost
- Check if current post in loop is last on current page
- Looping through dummy posts and showing them in the main index.php
- Trying to get pagination working on WP_Query() post grid
- How to display sticky post always at the top (before regular post) in wordpress?
- Making list of posts with chosen description
- Problems with the WordPress loop [closed]
- My query keeps looping infinitely ! how to stop it?
- Efficient way of querying for a “fallback” post?
- How to add thumbnails from recent posts to owl-carousel in wordpress automatically?
- For each 3 posts, show a different post type
- Add post class in custom loop (WP_QUERY)
- Create a hierarchical loop at predefined markup requirements
- WP Knowledge Base Theme bug – Subcategories and Articles, Need to change WP_Query
- Advanced Taxonomy query, with 3 post types
- Trying to display ads on only a third of posts in a loop. Keep getting Error 500?
- Why does a meta_query break this WP_Query?
- WordPress post pagination on custom template not working
- Pagination in category.php not functioning
- Pagination not working properly
- $_html is empty when var dumped
- Variable ++ in query loop
- How to use a conditional statement in a post loop but not count towards the “posts_per_page” if false
- How do I exclude the current post from the upcoming post query
- How do I display WooCommerce products in my query to rows of 3?
- How to get posts by a certain author in inner loop using outer loop variable or post title WordPress
- How to show correct td of table tags in wp_query loop
- Exclude first post from wp query
- Custom theme on multisite has issues with standard loop output
- How can I show the post thumbnail from the most recent of a certain post type, in widget?
- Looking for most performant way to execute several similar WP queries within shortcodes
- API response to be stored locally
- using add_action for a header hook that has an additional parameter
- custom shortcode will not display the wrapped content
- Use wp_get_recent_posts with search term
- multiple if statements [closed]
- WP_Query loop, does not display special characters in title correctly
- Remove query string specific key value
- How to select WooCommerce products by post_meta and order them
- Can’t load WP function into external function
- Hide post if matches current month and year
- How can I add pagination and how can I change thumbnail size?
- Custom category code not showing all posts
- Displaying theme options in css
- Get the last month with posts using a recursive function…
- max_input_vars: how many am I using?
- Use WP_Query in shortcode
- How to Display a Single Post Excerpt
- How to show a dynamic_sidebar if main content content’s height is > a set amount?
- Set WordPress Default Template
- How does the ternary operator work in the wordpress loop post?
- Very Slow Page – How to Optimize # of Queries?
- $wpdb->flush(); breaks the loop
- Custom URL parameters in template files
- How to filter posts by post format “standard” from wp-json api?
- Why is variable not working on custom sql query using wpdb?
- How to do multiple searches (with logical OR) in WP_Query in hook pre_get_posts?
- Use object in template part
- Can’t search posts using WP_QUERY inside AJAX Function
- How to query for pages/post depending on slug?
- How can I use wp_query to show all product data using just the products ID?
- Adding country tags automatically
- write custom woocommerce templates and forms
- Implement toggle switch for theme options in settings API