Offset loop not showing the last post

If you’re offsetting each query to not show the previous 3 posts, your offsets are set wrong. Try an offset: 3 on staff02_args and increment each succeeding query from there. 3, 6, 9 Instead of 4, 7, 10

Undefined offset: 1

The problem is that $Exploded_slug[1] is empty, don’t forget that arrays are 0-based. So you need to change your query. Also it is preferred to use lower case for regular variables like yours, so I’d also change $Exploded_slug to $exploded_slug. Here’s the code: $exploded_slug = explode($user->ID.’–‘, $url_slug); $query = “SELECT comments FROM wp_rdp_winners WHERE id … Read more

Using something else instead of using 9 wp_query

I don’t have a full detailed response for you, but here’s a few things I’d suggest: 1) Use template parts for each of those segments. That will help clean up the template so it’s easier to work with in the future. ( see here: https://konstantin.blog/2013/get_template_part/ ) 2) You could then create a helper function for … Read more

Style first 3 posts differently and use a 2nd loop to get rest of posts / offset and pagination broken

My advice would be to never use query_posts. Instead use a custom query or the pre_get_posts hook for both instances and always make sure you call wp_reset_postdata after your custom query. BUT becase your nav function references the global $wp_query, you would have to use query_posts passing the paged parameter to it. <?php get_header(); ?> … Read more

myprefix_adjust_offset_pagination’ not found

I could be wrong here, but you’re calling a function “myprefix_adjust_offset_pagination” with the add_filter option, but you’re not actually making that function unless it’s on the homepage as that function is created behind the if is_home statement. This would explain why you get the error on your admin page. Try pulling that function out, or … Read more