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
- Display current category title on category page
- PHP unit testing WordPress?
- List of all theme customizer control types?
- is_page() not working from within a plugin
- The best way to customize “nav-menu-template.php” to add if the ‘link_before’ is “checkbox”
- List all categories but exclude current post category on single post page
- How to add 2 posts under another post? Formatting should be intact
- Widgets not showing in my custom theme
- Edit category output
- Count number of published posts by type
- How to display custom field on homepage
- Can an array be used as a meta_query value?
- Can’t increase posts_per_page by variable
- Different background-image by category
- What is the fastest way to load PHP functions that are only used in one theme template?
- Get taxonomy terms only of the WP_Query current posts
- How do I access the media settings
- Can’t load WP function into external function
- How to do multiple searches (with logical OR) in WP_Query in hook pre_get_posts?
- How can i upload images in an admin page?
- get current custom post ID by WP_Query method
- Wp-login appears White Screen, Error: Cannot modify header information
- how do I get a specific post from a post with a subcategory in WP
- WP grandchild categories in nested ul li
- Need Help Fixing My Iframes [closed]
- Hide subcategories (widget)
- How to show only subcategories in parent category not parent category?
- Security for data obtained from the database
- WordPress admin-ajax.php
- Royalty-Free Sliders used in theme development
- How to retrieve the data from the sever and displaying it in a page?
- zip unzip attachments in wordpress
- WordPress get_media_embedded
- get_the_ID() in the footer returns wrong value
- In WordPress, how do I get the number of posts next to single_cat_title(”); in the category.php file?
- Custom post type category not displaying category ID
- How to get current post category details inside “loop”?
- WP_Query multiple post results
- get_comments_number() returns 0
- echo var into wp_query
- Why the dynamic_sidebar() call is putted into an ul tag?
- Wp Query : Order by distance lat,lon
- get different meta-data of a complicated query at the same time
- Get main parent category for post (WordPress/Advanced Custom Fields)
- WordPress sorting posts by date and title using a dropdown
- How to get specific multiple pages excerpts at homepage?
- Category Page Displaying all Pages
- Looping through dummy posts and showing them in the main index.php
- Link to index.php from home.php?
- Hide a specific category title from displaying on site
- Warning: count(): syntax problem of the count () function
- Wp-query output correct, but the loop shows one less item (only sometimes)
- Return to the beginning of the results of a for loop
- Customizer: How to Sanitize a Decimal Number Range
- PHP code printed into CSS classes
- Populate Posts based on category selected using AJAX that means without page refresh
- random woocommerce categories are not showing when count enabled?
- How to Retrieve All Category Images on Front-End
- What syntax is this? “{{post.price}}”
- direct query to post_meta table
- WordPress get_post_meta issue
- List sibling pages widget, exclude current page
- Is there a way to randomize and connect a background and header image?
- dynamically filter by category via sub-menu
- Get unique post in parent category
- Sidebar doesnt get updated?
- Incomplete term slugs output from a foreach loop with get_the_terms
- Does wp_query and query_posts affect website performance? [duplicate]
- WordPress post pagination on custom template not working
- ACF | WooCommerce | Theme Development | How to include a /template-part/ that makes use of ACF’s on a custom WooCommerce homepage?
- Twig+WordPress how to use array arguments inside a function?
- How to store the_post_thumbnail() value in a variable
- a problem in class in class-wp-hook.php
- Count custom posts type and filter by tag
- AJAX WP_Query’s order and orderby parameters not working