By changing the loop to use $wp_query instead of $query it worked. My challenge for another day is to delve into the differences between $wp_query and $query!
Related Posts:
- Determine if page is the Posts Page
- How to get ‘post_content’ without stripping tags?
- Post featured image column on admin post list page
- display all posts in wordpress admin
- When and Where is `global $post` Set and Available?
- Create an “All Posts” or “Archives” Page with WordPress 3.0?
- How to Sort Custom columns in admin
- Shortcode Not displayed at the Right Place [duplicate]
- Post visibility on the basis of roles
- List only child categories a post is in, of a specific parent category
- Unattaching images from a post
- Is it possible to add a first and latest posts link?
- Setting post meta data to random value during post status transition / on publish
- How to change post status from publish to draft using hook in wordpress?
- wp_list_categories link to first post of category instead of calling taxonomy template
- Alternate custom content in the loop
- Auto Refresh Post List after X seconds
- How to show video from specific category on sidebar?
- How only display all post related to category
- Display posts with comments closed, with pagination?
- How can I add a meta-box to the posts editor containing all items of a custom taxonomy as checkbox?
- Add category to all post by using sql query?
- can’t use the page_test method to check pagination
- post re-order on my site
- Only display posts after current date
- What differences are there between a Privately Published post and a Draft post?
- Invisible spam post in backend
- Private Posts/Pages & Search
- Update post status from “publish” to “trash” for half of posts
- Can I create a not clickable post?
- What is the standard featured image size?
- Allow multiple contributors to one post
- How to check a post exist when the permalink has post id in it?
- How to attach an image to a post through Java
- Post body text occupying featured image space before it loads
- Multi row post list
- Hook in to add new post link wp admin?
- transition_post_status hook doesn’t have any POST data when publish with Gutenberg [closed]
- How do I insert a post with custom post type and relate it to a custom taxonomy?
- Dynamically switch template on click
- add to end of post in the loop with plugin
- $post->post_type not working
- Tell WP to use a specific template file in posts
- Create a list of posts with topic headdings
- Add field to user meta table in database when link is clicked
- How to get post content from an array of ids?
- Hide custom metabox value from custom fields
- See if a post has a specified tag
- Images showing up in Post Editor, but not in Published Post
- Custom wp-query in wordpress rest api
- Is there a way to order children of post?
- Custom Fields for Author Box
- Custom home page with full post for first one only
- Need to know custom code to display random and most viewed posts in wordpress posts and pages
- How to retrieve certain number of images from a wordpress post?
- WordPress post filter menu
- Load widget only on blog posts
- Send email to author of post on post submission
- Change the background of each post according to the category
- Issue with first top post display order
- Let Posts be stored in another table
- Programmatically add posts from specific category to menu
- Widget to show posts in the sidebar basing on its IDs
- Display message depending on capability outside loop
- Get post category as a separate string and url
- Page of posts made to look like homepage
- How to link post titles on page A to its posts on page B?
- How can I to add upload functionality outside of the admin area?
- ACF flexible content block not showing on live site (works locally)
- How to limit number of posts on AMP homepage
- Related post not showing table of content
- What is proper filter or hook action to add data to the $post object?
- Added a ACF field to custom page and want the results to show as a column in admin
- How publish post from pending status
- Template for displaying CPT / Taxonomy URL issues
- How to reload a post page editor after published?
- How to prevent clicking on posts
- Hiding title of selected post without plugins
- WordPress for business site
- How to run select query of post with category and tags?
- How to use Categories of custom post type
- WordPress post filter
- Page 2 has no posts?
- im trying make a function to auto correct posts when i open the posts in the backoffice
- My blog “page” used to show a list of posts, but now it’s just showing the page content?
- Grab next post title in archive page
- How to store post rating system data post independent?
- unused post IDs
- get_post_meta property of non object
- Which hooks are essential for post templates?
- Combining multiple conditional statements [closed]
- First post in loop displays twice
- custom post type single page template not working
- WordPress posts [closed]
- Post UI Tabs plugin double fade effect
- Error 404 blog/page/2/
- Export Posts Without Categories In An XML File
- website images getting corrupt automatically
- Posts Page in WordPress loading bare HTML of my homepage
- Output number of WordPress posts remaining until a post milestone is reached