LOL– I had to just add posts_per_page in my $terms_year query. Leaving this up in case people need it…
$terms_year = array(
'post_type' => array('publications'),
'posts_per_page'=>-1,
);
Related Posts:
- How do I query a custom post type with a custom taxonomy?
- Return all custom meta data for one custom post type
- Updating custom post meta with ajax
- Custom post type archive 404’s with paginate_links
- WordPress post sorting with AJAX
- Prevent reload confirmation after AJAX save
- Loading Custom Post Type Events into jQuery-based FullCalendar?
- Limit the post for differents custom post type in the same wp_query
- Debug whats going on inside a function called from AJAX
- order by meta_value serialized array
- Loading post content in FancyBox
- Ajax filter with custom taxonomies
- Filter posts with ajax form and checkboxes
- Multiple templates for custom post type
- Used with meta_query in query_posts works slowly
- Query for posts in 2 taxonomies
- How to make an archive page displaying posts in a date range
- Display custom post types with custom date field value (before today) & order by custom date field
- How to dynamically build a multiple taxonomy query loop within a post type’s single loop?
- List custom post type by custom tax term as page title
- Filter custom post type archive page with custom taxonomies (categories) with AJAX
- Multiple post type queries (with specific arguments for each)
- Getting the URL of the parent page
- Ajax Check Post Status
- What’s a better alternative to this code?
- Filtering WP_Query Dynamically on the Front-End
- Why get_posts() not returning only selected category posts from Custom Post Type?
- Storing posts from query and accessing later via AJAX call
- How to query_post custom posts within default taxonomy?
- How to use custom taxonomies to reference complex relationships?
- Order query using custom meta data
- Query Custom posts of same taxonomy as the post itself
- Conditional Query of Custom Post Type and custom taxonomy
- Show a Category X’s custom post type on Category X archive page?
- How to edit this code to get the categories in achieve page?
- Category with post type pagination returns 404
- Homepage’s content is dependent on the custom field values (set automatically), how do I get homepage to update without manually updating page?
- Query posts based on the meta key values of logged-in users?
- Load Next Posts With AJAX not working with custom post type
- Different Ways to Query Custom Post Types?
- pagination not working for category.php (custom post types in categories)
- Retrieve custom post types by custom taxonomies with WP_Query
- query_posts adding extra code to homepage
- Why are some of my custom posts not showing up on my page?
- post-per-page and offset not working
- Control content before and after custom post type loop
- Custom post type, custom taxonomy, query posts only from taxonomy (children of)
- Getting all ID’s matching a title in a custom post type
- Count custom post type based on two meta data
- Post will not load via ajax
- attach CPT data to a taxonomy
- Select2 AJAX and WP Query Returns ALL and does not filter
- ajax response not recieving
- Getting a GET error in console – 404 not found for wp-json
- postsperpage value not being applied
- Incorrect ordering of custom post type based on time
- Custom Post type showing up in loop, regular posts are not showing up
- Query Custom Post Type based on text input
- Display custom-post type based on the Title matching the current selected value
- Custom Post Types Not Showing Up In query_posts Result
- Custom Post Type ‘Event’: Chronological list of recurring events from meta_values in array
- WordPress custom post type numeric pagination with ajax
- Sticky posts limit query and pagination for a custom post type
- Custom post type archive page filters
- Not saving custom taxonomy while using ajax
- Search for custom field input of a custom post type in ajax live search
- Use a template for a specific url slug without creating a page
- custom post type and user post count shortcode
- Modify default Related Posts Code to Custom Post Type
- Use WP_query to match post types based on custom field values
- Attend event form with ajax
- WordPress custom post type post item data – show/fetch only on click with Javascript dynamically?
- How to display custom post type pagination buttons when processing AJAX request
- My post loop needs to have 8 different post templates
- Group Custom Posts Types in a Relation field of ACF
- Is there a best practice, or typical way to do AJAX updating for data on a custom admin screen or post.php?
- Can I show some specific post rather than latest post?
- Filtering custom post using Ajax and taxonomies, keep getting 0
- update a posts of other custom post type
- Fetch loop of custom post types with AJAX
- Submitting custom post from frontend,jQuery ajax, and custom validation – can’t find proper place to insert wp_insert_post()
- Imported Content Doesnt Show Up On Frontend
- Optimise custom post type queries
- How to get Last post Id of custom post type in wordpress
- Display 2nd category, only once, as sub-heading, in the loop
- display news with pictures 3 small and one large (loop)
- Filter RSS feed for custom post type to events for next 7 days only
- How to load more custom type posts through AJAX & LOAD MORE POSTS button
- query_post causes the posts to be loaded twice on load more posts
- Custom post type blog pagination conflict
- Updating custom post meta with ajax
- Return only custom post types for the page, not all
- Custom filtering on month value only of an entire date field
- send user to first page of results when reposting to page?
- Query custom type posts by array of IDs
- Render a loop in Timber (twig for WordPress)
- Trying to set up a range filter for related custom post types
- Display ACF object field data using Elementor Custom Query
- Appointment booking system in WordPress
- Hide load more button if no more post in selected category