The problem with pagination was fixed by removing the wp_query loop and using the normal loop.
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<?php endwhile; endif; ?>
The problem with the “load more” plugin was fixed by using the right classname to load the items. And change this in the php of the plugin.
$paged = ( get_query_var('paged') > 1 ) ? get_query_var('paged') : 1;
$args = array('post_type' => 'inbeeld', 'paged' => get_query_var('paged') );
$query = new WP_Query($args);
$max = $query->max_num_pages;
Related Posts:
- Meta_Query as a way how to setup CPT permalinks – is it a good thing?
- Custom Post Type Archives by Date with Custom Permalink
- How do I get the permalink structure to work like this?
- Custom template won’t load for a custom post type (custom permalinks used)
- Custom post type archive pagination 404
- Ignoring slug capitalization on rewrite rule for custom post type archive page
- How to hyperlink content from archive page with custom post-type
- Permalink problems with custom post type and custom taxonomy
- Custom Post Type Archive template not being called
- Custom Post Type with Configurable Sidebar via ACF
- Custom post type category permalinks and archive pages
- Finding the CPT archive template source
- Permalink for custom post type pages not working
- Custom taxonomy in custom post type archive with pagination
- Permalink of custom post type partly broken
- Custom Post Type Archive Links Not Working
- Have two (permalinks) urls for a same custom post type
- How to have a dynamic slug and rendering the archive-{post_type}.php?
- Cannot create custom post types with a specific name
- Form action doesn’t work if slug isn’t same as custom post title
- How to make permalink structure %category%/%postname%/ work for custom post type?
- set permalink for CPT
- Lost of query parameter when using permalink
- Custom permalinks rules don’t match and lost of query var in the process
- Custom Post Type – Duplicate Page Slugs
- Rewrite rule for Custom post type Monthly and Yearly archive
- Different results between permalink and query var search
- menu link to custom post_type?
- Custom permalink with child taxonomy terms
- Custom post type Permalinks with hierarchical Taxonomies
- 404 in custom post type feed with mistake permalink
- Paginate_links in custom post type template
- Add a permalink variable onto custom post type URL after post name slug
- My archive-posttype.php template is not loading
- Custom Post Archive is not working
- Remove permalink for custom post type
- Limit the Title Length on Custom Post Type Archive Page to a Set Number of Characters
- Custom post type archive with page as parent url
- Add parent post to Custom Post Type [closed]
- Permalink misbehaving in Custom Post Types
- Check post on publish for blank title
- Set featured image to archive.php
- How to solve this custom post type goes to 404 page?
- Best way to specify “article type” in URL
- Template files for Custom Post Type and Taxonomy
- How to Create Template File for Parent Page of Custom Post Type
- How do you create %post_type%/%postname%/ permalink structure?
- Problems with 404, .htaccess, permalinks and WordPress custom posts locally on Snow Leopard
- Changed permalink structure of CPT – should I redirect?
- What’s the name of the custom post type yearly archive template?
- How to query 2 custom post types that need to share a slug?
- Custom post type, global categories — what’s the template name?
- I’m having trouble getting the permalink sample on my custom post type edit page to work
- How to change path for default WordPress blog posts?
- Set thumbnail and title for a post type archive (not post itself!)
- Can’t use pagination with custom taxonomy
- How to set up Custom Post Type archive page as Front page
- Url to archive page for custom post type
- retrieve permalinks of posts inside custom post type by using post ID
- Custom Permalinks with meta value not working. Why?
- Custom post type as child of page
- How can I use archive-{post_type}.php theme template?
- Remove custom permalink structure from custom post type without modifying register_post_type() directly
- How to display CPT archives?
- Custom meta Title for custom post type archive from page
- Excluding a Custom Post Type with a specific tag using pre_get_posts
- Return the name of the post type
- How to have permalink like domain.com/term/postname?
- Can variables be used to rewrite a Custom Post Type permalink? [duplicate]
- make permalink go to a custom single.php file
- Custom post type permalink sends to 404.php
- current-menu-item not added on page showing custom post type (rendered with archive template)
- Alphabetically sort a taxonomy.php template by post title
- Post will not load via ajax
- Template for custom post type when taxonomy is in the URL
- One Custom post type 404’s others don’t
- Custom Post Type posts, conflict with posts after add_rewrite_rule to top
- Custom Permalinks For CPT and pages with parent. Advanced WordPress
- How to change base in tag URL for custom post type, to not use “Custom Structure” set in Permalinks setting?
- How to integrate single and archive templates for custom post type in any WordPress theme
- Combine multiple CPT names to create valid permalinks
- How to implement a different permalink structure for custom post type?
- sort CPT on Custom Taxonomy Archive page
- How to add a sub directory to WordPress single posts without affecting other post types?
- Set parent for custom post type archive rewrite url
- How to rewrite the beginning and end of the permalink structure in a custom post type?
- Route subpage to Custom Post Type
- Custom Post Type “MUST NOT” be able to search via URL
- ACF for custom post type archive pages: which hook to use?
- Use the custom post type archive for taxonomies?
- Custom post type permalink returns 404 when set to private
- Post URL based on Custom Post Types variables
- Custom Post Type Advanced Slug
- Dynamic CPT permalink structure based on ACF field value
- Custom post type slug 404
- Custom permalink not working and showing 404 page not error
- Custom Post Type permalink without /%day%/ and/or /%postname%/
- How to filter a custom post type by custom taxonomy without 404
- Custom Post type date archive for custom taxonomy
- Show categories of custom post type and not all posts