It was just a missed line of code since it’s a new WP_Query:
Needed to add 'posts_per_page' => -1
to
$the_query = new WP_Query(array(
'post_type' => 'projects'
));
Related Posts:
- WordPress loop specific thumbnail size
- How to add condition in wordpress loop? [closed]
- Last class on last headline?
- Dividing the loop to style post differently
- How to get URL of current page displayed?
- Getting only direct child pages in WordPress with get_pages
- Query multiple custom post types in single loop
- Adding first / last CSS classes to menus
- What is This esc_html_e() i wordpress php?
- How can I fetch loop of post titles via AJAX?
- WordPress Admin Bar pushed Sticky Footer off the bottom of the page
- Inject post (from specific category) between posts in Loop
- Nginx FastCGI_Cache Vs PHP Caching
- Knowing the total number of posts before to get into the loop
- get product attributes for current product and store it in a variable
- How to target with css, admin elements according to user role level?
- Build a content and excerpt grid loop with paging and options for # of posts
- the_author_posts_link css class
- WordPress Shortcode and Dynamic CSS
- Displaying post per day
- How to change “Shipping Calculator “field label on Cart Page – woocommerce? [closed]
- Installing wp3.2.1 on IIS; getting empty sessions
- Guidance with The Loop for CMS
- Display only text to WordPress loop without loosing the text formatting
- How to loop over custom fields in a page template?
- How to add active class to custom menu using while loop and wp_list_pages
- “wp_enqueue_style();” don’t load new edited style
- Want to separate sections of posts. Can you restart loop?
- Best way of adding CSS which can be manipulated by the user via theme option panels?
- MySQL query performed 4 times inside loop
- Need help on WordPress and php
- Print html when custom field has value inside while loop
- Alter secondary loop to exclude posts from current page category
- Multiple pages on one with different HTML
- Post from one loop in different containers?
- Custom Loop Pagination on WordPress
- functions.php not adding css to website?
- Specific Loop For 2 Within Each
- delete an array element when its date expires
- Two posts in same div – WP loop
- Infinite-Scroll Plugin and Jetpack Infinite Scroll Plugin – Adding to “Thoughts” Theme
- wp enqueue style and style sheet depth
- How to change post count in wordpress loop?
- How can I loop into two different DIVS without repeating the DIVs
- WordPress Customizer not setting default value upon initial install?
- User Defined order on get_categories?
- Woocommerce, recognize the loop of related products
- Theme Customizer – Dynamic CSS PHP File
- CSS saved & enqueued, but wordpress doesn’t load css text, only file
- Using PHP in a Stylesheet (possibly a “.htaccess” problem?)
- Store loop into array
- Looping through WP_Post Object
- get understrap pagination to work with custom query
- WordPress doesn’t include css
- Understanding child theme functions.php
- wp_enqueue_style with style.php and WordPress functions
- Is it possible to use the featured image of a page as a css background without inlining?
- Woocommerce – How to get products which have a sale between 20% to 40%? [closed]
- How to clear WordPress Cache from Server/FTP/Remote location
- Displaying Only Certain Tags in Loop
- if file_exists not working with wp_enqueue_style
- Easiest way to show total number of subpages
- Want to create Child theme, but already edited Parent theme css files and some php files
- Minify HTML, CSS, JS with PHPWee?
- Using PHP to toggle stylesheet and header image, set in cookie
- Archive dropdown styling not applied
- How to display a value from a radio button in the options menu in wordpress
- Custom Loop through category menu to include sub categories
- How should I best target dynamically served content?
- When would you use $_post instead of $post?
- Different background-image by category
- Style every second widget?
- Output 2 items within the Loop
- How to scale image with equal width and height without distortion?
- PHP Code stuck in Cache [Memcached] [closed]
- How do I display the function the_content in this loop?
- Show Custom Taxonomy Title
- How to exclude specific category from the get_the_category(); array
- Add a Different CSS Class Into The Body Tag of Different WP Pages
- Way to display “Yesterday”, “Today”
- How can i display post loop in table format?
- php syntax – how to concatenate properly – echo bloginfo(‘stylesheet_directory)
- spliting posts into two columns
- Must Use Plugin Causing Query Error
- How to get to a specific position in wp_query?
- wp nav menu: add attributes to menu items [duplicate]
- Advanced Custom Fields: Post Object – Not returning data [closed]
- How to speed up a wordpress function with multiple loops?
- Facebook “like” open graph meta in header.php
- Custom excerpt function re-factoring
- WordPress override bloginfo variable
- How can I show the post thumbnail from the most recent of a certain post type, in widget?
- Put CSS inside a PHP file and include it the right way
- Shortcode content output but not in correct place
- multiple if statements [closed]
- How to select WooCommerce products by post_meta and order them
- An unwanted inline style is added to my body tag
- How can I add pagination and how can I change thumbnail size?
- Displaying theme options in css
- Show post in slider