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
- How to export/import theme customizer settings?
- How can I add a class to a single menu item?
- Store loop into array
- Looping through WP_Post Object
- Display Post co-authored in Author Page
- How to exclude specific category from the get_the_category(); array
- Looking for most performant way to execute several similar WP queries within shortcodes
- max_input_vars: how many am I using?
- How to Display a Single Post Excerpt
- Multiple WordPress Menus that will only display all pages
- How to make sure content doesn’t display if selection is empty
- Hide categories that are not used in the post type
- Menu jumping when calling it via PHP
- Is there a way to conditionally check whether a WordPress post title is empty?
- Use WordPress function in php file
- WP_Query with custom post type ID
- WordPress WP_Query without query GET parameters
- Removed jQuery script from header.php , any problems?
- Trying to change featured image from 180×180 to full width on home page
- Remove the Tag from wp_nav_menu
- Isn’t Returning Value While Using SELECT COUNT(*) FROM {$wpdb->prefix}
- Need help for some PHP code
- Is it possible to order posts using multiple meta queries, i.e. show posts from first meta query, then the second?
- Get title of page containing post grid within the posts
- Problem with displaying CSS Stylesheets – Am I adding them correctly in my wordpress child theme?
- Define global custom post
- Add a custom link to each image in WordPress gallery
- cURL needing to loop through all “next_page”
- How can I get my pagination loop to display the correct number of total pages?
- I want different post-thumbnail size depending on media size
- WP_Query count of different meta key values [duplicate]
- Create Customization Controls from Array
- Custom post type archive organized by category
- ACF loop and php formatting
- PHP warning: Undefined array key 2 in feed.php
- Saving meta box data from selected option’s value in database is not working