A shot in the dark honestly, but the offset may be causing it to not read that category in the category array. Maybe try turning the offset value to 0 (possibly even -1). Hope that helps. Good Luck.
EDIT: Also was able to find this with some information on the offset parameter:
https://codex.wordpress.org/Class_Reference/WP_Query#Pagination_Parameters
Related Posts:
- Inject post (from specific category) between posts in Loop
- retrieve thumbnail from post ID of best selling product in category
- Custom HTML structure in wp_list_categories
- Get category name from custom loop and echo it once
- Custom category code not showing all posts
- Grab posts by multiple categories
- Redirect to another page using contact form 7? [closed]
- Getting posts to exclude from array
- Get all posts as an array ID => Name
- How to hide posts of a specific custom category in WordPress?
- Post not populating for custom post type based on category selection
- Custom post type permalinks do not appear using the link functions
- Do not duplicate posts with multiple categories in multiple loops
- Toolbar Hidden in a Virtual Page
- Using multiple variables to assign categories to an array
- Search.php gets metadata from first post
- Remove Custom Post Category In WordPress Slug Using .Htaccess
- How do I edit the terms output args or array data?
- Create category after theme setup and modify the default one
- Trying to get pagination working on WP_Query() post grid
- How to add thumbnails from recent posts to owl-carousel in wordpress automatically?
- Query seems to be duplicated
- Fix incorrect related posts code snippet
- Display all categories (with link) of custom post type – WordPress
- Variable ++ in query loop
- Exclude first post from wp query
- How could I prevent using the same custom loop in a template file when I only need to change one meta_query parameter?
- Get posts with at least one category in common with current post?
- How to exclude specific category from the get_the_category(); array
- Add HTML Attributes To Anchor Tags In `wp_list_categories()` Function
- Remove annoying WP Adminbar CSS
- What is the fastest way to load PHP functions that are only used in one theme template?
- Sorting Posts | Alphabetical Order
- My Own layout in WooCommerce pages [closed]
- Get taxonomy terms only of the WP_Query current posts
- WP_Query arguments to fetch custom post type posts which are in certain category?
- Woocommerce – remove product from category
- How to get to a specific position in wp_query?
- Differences when using the the_time and the_date functions
- Exclude posts from homepage having a specified tag
- Display all categories including sub categories
- Why is this Ajax not working?
- How do I access the media settings
- How do themes render caption texts in extended markup (e.g. “wp-caption” paragraphs)
- Changing the template hierarchy
- 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
- WP_Query loop, does not display special characters in title correctly
- Remove query string specific key value
- Can’t load WP function into external function
- Hide post if matches current month and year
- 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
- have_posts() execution failure
- How to show a dynamic_sidebar if main content content’s height is > a set amount?
- Category Thumbnail Display – How to display ONLY the main Category
- Where do posts get the sidebar from?
- Set WordPress Default Template
- 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?
- 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
- hover image appears below placeholder instead of overlayed
- combine Code 1 with Code 2
- Using a `Template Parts` folder instead of an `Includes` folder in a Custom WordPress Theme
- Get Current User Id Inside a Loop Returns 0 For a Shortcode
- get current product name in functions.php
- Using a variable in is_page(array())
- Random order of WP_Query results with highest meta value
- Trigger popup in a php if/else statement
- Anyway to output the registration form like the login form with wp_login_form()?
- Custom page archive query by url var calling page twice on one of my custom queries?
- How do I get current page ID in WordPress customizer file?
- WordPress custom slug (endpoint) and compare all links
- Customizer: Output default value in Customizer CSS
- How to load a template-part based on a url wildcard?
- get post based on category chosen in drop down – The ajax method
- WordPress does not load page.php, return 404.php
- How to use transient in this code for related post?
- How can i upload images in an admin page?
- Where to edit the template that is generating the code for dynamic_sidebar left-sidebar in the Understrap theme? [closed]
- How to query for posts with a null or blank post_name?
- WordPress pagination not working with search page
- get current custom post ID by WP_Query method
- Multiple WordPress Menus that will only display all pages
- Creating a related post section based on similar categories
- Set the checkbox as checked by default at options page
- Swapping wp_dropdown_categories function with wp_category_checklist
- How to securely provide a $_POST var in WP_Query with PHP 7?