After i posted the question, i was told the staging site which i was working on, and the production site’s code was out of sync.
The answer ended up being simple:
'posts_per_page' => 8,
(which was actually working but was out of sync with repos / server)
was actually set to 'posts_per_page' => -1
, which i changed to 'posts_per_page' => 6,
and that did it!
And for pulling the most recent, i didn’t realize it does by default, which i found that answer here.
Related Posts:
- the_date() not working
- Delete post revisions on post publish
- How to sort results from a custom database table
- WP database error for comments_popup_link()
- Why is variable not working on custom sql query using wpdb?
- Create WP_Query to search for posts by their categories or their parent/child categories
- mysql query from wordpress page using custom table
- Long running queries
- Using $wpdb (WPDB class) ‘replace’ with multiple WHERE criteria problem
- WordPress SQL injection
- mySQL queries are executed twice on wordpress website
- WordPress Custom Query: Combining Two Functions
- SQL error with custom query
- Query doesn’t display text data with apostrophes
- How to do a MySql query in WordPress?
- How can I display a query in a page?
- Include a custom field in mysql query
- Query Concatenation
- dbDelta support for FOREIGN KEY
- How to correctly submit a search form and display the result in an independent page
- How to use update and delete query in wordpress
- Does WordPress cache get_user_meta() results?
- How to order posts by modified date without using ‘query_posts’?
- Using Echo in ShortCode – Stuck
- MySQL query performed 4 times inside loop
- Show only one post for each author ( Page loads too slow )
- Specific Loop For 2 Within Each
- No wp-config.php file on local install of wordpress – site still displays
- Use ajax to update_post_meta
- Insert all post IDs in new database table
- What SQL / WordPress queries would need a nonce?
- Different database query in function.php using mysqli
- List User order by ID in Descending order (Backend)
- Get WooCommerce product details and transfer them to a custom DB table
- How to securely provide a $_POST var in WP_Query with PHP 7?
- What is a valid parent for get_terms()?
- WSoD being caused by this piece of code
- ACF: how do I get the fields and its values of a specific group?
- How to display data from custom table in wordpress phpmyadmin
- Set WP_query ‘order’ option by another tables value
- WordPress default Search function inconsistent in WooCommerce Product Titles
- Update results, Before deleting the related category [closed]
- Replacing mysql_escape_string in a custom plugin when moving to PHP7
- Weird 404 URL Problem – domain name being placed at end of urls
- database sent to a JSON file
- $wpdb->insert() does not Insert record in a table
- Which is the correct way to conditionally enqueue a CSS file?
- multiple where condition in result query
- Grouping posts by a custom meta value
- How to list commenters and days since last commented
- Can’t update multiple rows with $wpdb query
- Mixing variables into an array when inserting values
- wpdb prepare insert table doesn’t work
- WordPress hit memory limit but not from the server
- How to display SQL query that ran in WC_Order_Query?
- Custom Post type slider with thumbnail navigation
- I can’t update my data through $wpdb
- Output: “Array”
- Why is my max_upload_filesize being limited to 2M? [duplicate]
- Live search from database table
- Limit tags shown in post
- form $_post action value gets truncated after it passes through two forms
- Why my query does not run with prepare
- phpMyAdmin error #1062 – Duplicate entry ‘1’ for key ‘PRIMARY’
- List of Events with Multiple Dates: Only NEXT Date
- Add row to custom database Table and delete all rows older than 1 day
- How to create Loop code for Menu using WordPress?
- How to WP_Query posts order by parent title?
- Convert a column of a table containing an Array as response in HTML
- Error establishing a database connection (Set-up locally)
- Display articles with a different template in the home page | Solved |
- Category Page Displaying all Pages
- how to get data from two different table from wordpress database
- Passing Current User ID into SQL statement
- How to insert multiple rows and columns in database using array
- PHP Warning: mysqli_error(): Couldn’t fetch mysqli in
- WordPress mysql deos not work with php7
- Error inserting into custom table – Object of class wpdb could not be converted to string [closed]
- WP + MySql db / PHP
- The plugin generated 225 characters of unexpected output during activation
- wordpress query returning unexpected results
- append data to mysql table via submit button coded in php – not working
- WordPress select query issue
- (Who to follow) Twitter widget
- Pagination in WP Queries
- Add two or multiple functions in WordPress Post or Page
- Send data from plugin to external database
- How to set max users to 17.000
- directorypress theme error mysql_error() [closed]
- Unserializeing multiple column values that are stored in one database results variable
- If Elseif Query
- How can I add more code to this?
- Cannot Upload Custom Header Image into WordPress Dashboard
- MySQL update text field with ‘
- Does wp_query and query_posts affect website performance? [duplicate]
- Predefine Magazine Style Layouts
- Parse error: syntax error, unexpected ‘}’ in C:\xampp\htdocs\admin\products.php on line 148 [closed]
- what to do after instlling cyberpanel on VPS
- Exclude a category ID from the following function
- Can’t insert into a database wordpress