user5477769 reports in the comments of the original post, that the problem has been solved:
I was following Custom Post Type UI instructions but it seems it led
me astray. Creating aarchive-gallery.php
with a vanilla Loop, along with
removingis_main_query
has solved all problems, and the pages now show
with 9 posts and correct pagination.
Related Posts:
- why custom post archive gives always no more than 10 posts despite of paging settings?
- How to use a custom post type archive as front page?
- How to set a custom post type to have viewable future posts
- Prevent pre_get_posts filter on specific post type
- Custom post type archive 404’s with paginate_links
- How to put custom post types on front page
- Number of pages – multiple (custom) post types
- Include post id[s] into WP_Query()
- Pre get posts for single post
- Custom permalink with pagination
- Related posts by author pagination not working on the production site
- Pre_get_posts Gives 404 on Custom Post Type
- Secondary loop pagination on custom post type single post gets redirected to first page
- How to get_queried_object on multiple objects?
- Pagination Doesn’t Work
- Numeric pagination custom post type
- Custom wp_query pagination – next_posts_link() or wp_pagenavi() always empty
- How Do I Use WP_Query to Run This Database Query as Search Result?
- paginate function in archive for custom-post-type
- custom post type paging not working past page 3
- Can’t sort order of wp_query with 2 meta keys
- WP_Query pagination using only numbers instead of /page/1 on URL
- Pagination not working
- Pagination Issue: Custom Post Type In Index
- Display all Posts and only certain Custom Post Types with meta fields
- Custom query form submission pagination
- Paginated Taxonomy Term Archive including one post per term
- Custom post type archive page pagination
- Unable to get paginate_links working with a custom query [duplicate]
- How to use WP_Query in a CPT achive page?
- is_main_query() not working for WP REST API
- WP_Query | ‘post_type’ doesn’t work
- Pagination on category page with custom post types
- How to add pagination to wp_query [duplicate]
- Pagination : How to remove /page/x/ after a ‘POST’ action on a form returning to page 1
- Pagination on a custom post type loop
- Previous/Next Link by Meta Value in CPT
- Pagination for Custom Taxonomy Page [duplicate]
- Pagination on with query_posts in custom post type template
- Custom taxonomy rewrite give pagination 404
- Woocommerce search pagination not working
- How do you paginate a query grouped by month?
- Pagination issue on category.php using custom post type query
- Pagination with custom query, custom search form, single and pages, ajax and no plugins
- can these 3 queries be re-written as 1 query?
- pagination not working for category.php (custom post types in categories)
- Custom WP_Query always respond with 200 status even when no entry
- Excluding a Custom Post Type with a specific tag using pre_get_posts
- Pagination doesn’t function properly for archive of a custom post type set as the front page
- Trouble with pagination
- Pagination 404 on Index with custom query
- How to query for posts (hierarchical custom post type) that have children but are NOT top level?
- Custom post type and custom taxonomy 404 on page 2
- CPT Archive pre_get_posts not working?
- Pagination for search results of custom post type [duplicate]
- Custom Post Type Archive Pagination
- Query Posts that have Custom Taxonomy
- All blog posts are not showing up
- Make Next and Previous on single-$posttype.php use the same order as archive-$posttype.php
- Single parent post lists child posts with pagination
- Custom post type pagination error
- Previous / Next Links For Custom Post Type Sorted By Meta_Value
- custom taxonomy pagination 404 error
- Pagination in custom post type archive.php not working
- Query to Exclude Child Pages from Custom Post Type Archive
- Pagination Not Working When Used With WP_Query() `offset` Property
- Numeric pagination custom post type
- pagination problem listing custom post types of taxonomy in wordpress
- Problems in paginate_links with custom query loop and MB-Relationships
- Tell wordpress to show a single page instead of an archive page
- Permalink for custom post type pages not working
- WordPress doesn’t respect Page slug in custom post type url pagination. Keeps getting removed
- Make pagination work as a carousel (custom query)
- Custom post pagination not working
- Only show categories that have posts within custom post type
- pre_get_posts gives 404 error on Custom Post
- Custom taxonomy in custom post type archive with pagination
- Pagination fault in custom post type archive page [duplicate]
- query and paginate multiple post types
- Custom post type blog pagination conflict
- Custom post type pagination, single page issue
- How do I sort post listing by child post count?
- Pagination always adding “Next” link when results come from Custom Post Type WP_query
- paging is not working properly on news archives page [duplicate]
- Paged within a custom content type template [duplicate]
- Archive Page Pagination not working
- Pagination not working on homepage
- send user to first page of results when reposting to page?
- Fourth page of custom post type archive page does not exist
- Pagination broke after updateto WordPress 3.4 [duplicate]
- Pagination not working for archive
- Archive page – problem with pagination
- Pagination not working only on Archive-Name.php using new WP_Query
- Pagination not working on custom post type archive
- Archive pagination – second page shows exactly the same posts
- Custom Post Type Rewrite Rule for Author & Paging?
- Display featured posts for a custom post type by taxonomy
- Best practice to display a list/archive of Custom Posts in a Page Template
- WP_Query() displaying past post / event
- WP Query Conditionally query meta and taxonomy