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?
- the_author_posts_link css class
- WordPress Shortcode and Dynamic CSS
- Display only text to WordPress loop without loosing the text formatting
- wp enqueue style and style sheet depth
- CSS saved & enqueued, but wordpress doesn’t load css text, only file
- get understrap pagination to work with custom query
- 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]
- Displaying Only Certain Tags in Loop
- How to display a value from a radio button in the options menu in wordpress
- How should I best target dynamically served content?
- How to scale image with equal width and height without distortion?
- Way to display “Yesterday”, “Today”
- php syntax – how to concatenate properly – echo bloginfo(‘stylesheet_directory)
- multiple if statements [closed]
- Problem adding class to body_class
- have_posts() execution failure
- WordPress with php 5.5 and zend opcache
- How does the ternary operator work in the wordpress loop post?
- Get different images for mobile and desktop with php, advanced custom fields without using js and ajax
- Cannot display or echo alt text on featured image
- Using loop pagination on single.php
- Selectbox in admin panel function linking to CSS
- Using if/else statements with output from theme options
- Is there CSS to expand the gallery limit on Index Pages?
- How to combine wordpress_logged_in cookies in one cookie?
- How to display pictures from database?
- how to refresh div on template part?
- Running code before object-cache.php runs
- Different post styles depending on category
- Display category name only once inside loop
- How Can I use WP_Query to Only Display 1 Post from Custom Post Type if Query Returns Posts with Matching ID in Custom Field
- custom css for admin only
- responsive.css in the WordPress should be prioritized
- WordPress style.css not updating, only after theme reload
- Adding logo to WordPress header
- Thumbnails appear to be zoomed
- Odd / Even posts add class minus first post
- Is the wp_enqueue method efficient?
- wp_query get the 2nd post
- WordPress archive page showing 404 Error [duplicate]
- How to add div blocks after certain set of post
- How do I remove a category from a wordpress loop>
- Removing WordPress Footer -without access to PHP code?
- WordPress loop by meta key that is an array? and how loop multiple arrays
- CSS change in woo commerce Place Order Text [closed]
- Post repeated when opening in overlay, how do I solve this? [closed]
- Split site title and apply different classes
- Twentyfifteen style author comment
- Dynamic CSS through PHP issue
- Echo array value
- How to make changes to style.php [closed]
- conditional: if is page, and all subpages
- How to break up php code to avoid echo
- Create Columns with Custom Walker and CSS Classes
- Why would the child theme load in the Customize preview, but not on the site itself?
- Products listing check if meta checkbox is checked
- echo cutom css code to WordPress page template file ? is this safe?
- I can’t go to the page archive-{post_type}.php
- Get title of page containing post grid within the posts
- Problem with displaying CSS Stylesheets – Am I adding them correctly in my wordpress child theme?
- Trying to generate a CSS file in wordpress uploads folder
- WP Website is shown in HTML
- I got big white screen when i attach main style sheet of Html in functions.php
- Add a default style if no Featured image is selected
- Styling a specific post after hovering over it
- How can I get my pagination loop to display the correct number of total pages?
- How do if all posts has this category ID then do this
- ERR_TOO_MANY_REDIRECTS / To Force SSL Logins and SSL Admin Access
- custom field – changing an element or background of id div – different versions not working
- View tag description on page
- CSS loading as empty file in Custom Theme
- How limit the width of a fixed menu-bar on scroll?
- Insert div after every three posts in home.php [duplicate]
- Fatal Error cannot log into wordpress and website disappeared
- Display product attributes for current product
- Where to find the html for WordPress site? [closed]
- How to remove image on single product and get product to span page?
- widget: input the px value from user and use it as inline style in widget function
- RegExp to EXCLUDE strip HTML (FOR SOMME) comments
- Create Customization Controls from Array
- How Can I Center the Logo in the Navigation Menu? [closed]
- ACF loop and php formatting
- How to have post count after each listed category
- How can I put a custom field as the link of a button shortcode?
- Transient Loop Not working as expected
- How to change the menu color
- Converting Menu Links to List Elements
- Conditional in foreach loop is outputting content twice
- How to get shared CSS body class between translated WPML pages [closed]
- is there away to hide php code in wordpress not to show in PAGES
- How to create and add js and css file when server is not on my PC?
- which php or css file has generated an inline style in WordPress that overwrites my css
- How do I exclude the current post from the upcoming post query
- How to create different templates for woocommerce single-product.php?