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?
- what is the correct way to compare dates in a WP query_posts meta_query
- How to get post content by calling ajax?
- How to show all posts of the category in wordpress?
- Get the ID of the latest post
- Using meta_query, how can i filter by a custom field and order by another one?
- Return all custom meta data for one custom post type
- AJAX search on post pages by custom post type
- Display a query with multiple post types and same relationship on a single page
- Fail to compare dates in meta_query
- How to filter custom posts by tags and custom fields?
- Development of a WordPress Search Plugin – Best Practices
- Order by & include array by specific post ids
- How to call a custom post with get_posts() instead of query_posts()?
- Updating custom post meta with ajax
- Custom post type archive 404’s with paginate_links
- Favouriting a Custom Post Type
- WordPress post sorting with AJAX
- Filtering custom posts with Ajax
- Prevent reload confirmation after AJAX save
- Display Custom Post Type Fields
- Querying custom posts and regular posts
- is_singular() not working if called via callback function of admin-ajax.php
- How to filter post data with AJAX on page?
- 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
- Retrieving 3 latest post from each of 5 different custom post types
- How to hook get_terms() to only show count of posts that have custom meta
- Using Offset in Custom Post Type Query
- Is there an easy way to AJAX-ify saving of post?
- Use WP pagination functions on a custom page template
- 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?
- Getting Custom Posts with Custom Taxonomy
- Query the title of the page to show posts with matching category in the loop
- 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
- Collect custom post in a calendar
- How to Create movie schedule by custom post type query
- Calling in Post Content via AJAX
- Submitting custom post from frontend,jQuery ajax, and custom validation – can’t find proper place to insert wp_insert_post()
- How do I get the posts from single page custom post type from a sidebar to display in a page?
- Main site single-property.php design, as homepage of a multisite
- How to set class to “current-page” on the currently viewed single post within a CPT
- Imported Content Doesnt Show Up On Frontend
- Optimise custom post type queries
- WordPress custom post type
- How to get Last post Id of custom post type in wordpress
- How to get main div html to print a list of posts inside?
- Display 2nd category, only once, as sub-heading, in the loop
- WordPress custom post type queries
- 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
- Using $seed on a custom post type for randomly displayed posts
- query_post causes the posts to be loaded twice on load more posts
- Query Distinct Taxonomies of Custom Post Type
- Custom Query With Multiple Meta Key Value
- Ordering custom post type by custom field without a title
- Custom post type blog pagination conflict
- How can I list custom post by custom category?
- Updating custom post meta with ajax
- Query Posts From Multiple Post Types
- Return only custom post types for the page, not all
- Custom filtering on month value only of an entire date field
- Advanced Custom Fields: query posts filtered by multiple field values
- WP Build-In Post selector for CPT
- Two different archive pages showing the same content
- What’s the best way to show custom post types? With page template it’s not perfect!
- How to apply order on custom taxonomy and custom meta key on custom post type
- send user to first page of results when reposting to page?
- How to grab data (titles, thumbnails and custom fields) from multiple posts to populate a new array efficiently?
- Query custom type posts by array of IDs
- update custom taxonomy with Ajax in edit.php file [duplicate]
- Inserting two categories
- How do I correctly query posts from a post ID?
- How to exclude certain portfolios from a loop
- Render a loop in Timber (twig for WordPress)
- show custom post’s post in two different divs [duplicate]
- How to get Custom post type by related category ID
- Trying to set up a range filter for related custom post types
- Quering array of post types & pagination. Articles are repeating sometimes on different pages
- Display ACF object field data using Elementor Custom Query
- How to filter custom post data with AJAX?
- Assign a tag to custom post type using a query
- Internal Server Error when echoing an OBJECT from wp ajax action function in functions.php to JS file
- Load posts via AJAX without draft status
- Appointment booking system in WordPress
- Issues with Ajax Pagination and Filtering
- Hide load more button if no more post in selected category
- Passing total post count to javascript
- get total post in category via ajx
- Default post showing more than intended
- Load more post with AJAX
- Get current post type within functions.php
- Search and filter terms of a custom post type only and display results
- Post current post type to my Ajax
- Ajax load more post button not showing