Solutions is to add a $page entering value to the function and in the curl route that represents the page number to end up with a route like this
curl -i websitename/wp-json/posts/page_number
where $page is page_number
public function posts($page){
$args = array(
'author' => $id,
'posts_per_page' => 24,
'offset' => 0,
'meta_key' => $meta_key,
'orderby' => $orderby,
'order' => 'DESC',
'paged' => $page,
'post_type' => 'videos',
'post_status' => 'publish',
'suppress_filters' => true );
Related Posts:
- How to loop through JSON data in wordpress WP REST API
- WP API V2 returning Invalid User ID
- Passing JSON data from WP Query into AJAX causing NULL errors
- Export all post from database to JSON only when the database gets updated
- Create a new user using WP REST API and declare meta object
- How Do I Add User Custom Field to REST API Response?
- API JSON Data in WordPress
- fetch_feed: retrieve entries in the appearing order, not chronologically
- Gutenberg custom block using only register_block_type() and HTML
- How can I export post data in xml format?
- how to decode % in app [closed]
- Upload a json file in php [closed]
- Why does running get_the_excerpt() when generating JSON file take 28 seconds vs. 599 milliseconds without it?
- How to send user data in json format to another server when user register on wordpress site in PHP
- Create dynamic pages from external JSON data without storing in Database?
- Parsing php string in jquery [closed]
- Vagrantpress + composer
- woocommerce registration form with klaviyo(don’t work with current user)
- wp_remote_get adding backslashes
- Creating a Multi-Level Associative Object Using AJAX
- Fetch post block/field data as JSON with WordPress API
- wp_enqueue_script seperately for each shortcode
- database sent to a JSON file
- Input data from email form not going to JSON file
- PHP > Scheduled Tasks > Sending daily email with dynamic API variables
- Fetching instagram api not working on wordpress
- JSON REST API WordPress only showing first 10 categories
- entire JS folder not loading in a WP theme
- Retrieve Json data and create multiple pages with it
- How to clone all WordPress Rest API end points
- PHP error with a shortcode: “no suitable wrapper” for file_get_contents
- Sending simple variable on single page to WP JSON
- Can’t pass var from php wp_ajax into ajax script : result undefined or null
- Issue with json decode in WordPress – value is not returning consistently
- How does one make a URL return dynamic JSON with custom Content Type?
- How can i send id of the currently posted form data through json response in custom wordpress plugin?
- Need help to create WordPress page that decodes a text file and publishes it in JSON format
- wp_send_json erase last value
- Complex PHP for json_encode > how to handle/output right?
- Can’t get_users info by using json_encode
- AJAX Filter WHILE Loop not working WordPress
- I want to use wordpress database in android app using json encode?
- Result from wp_send_json adds line feed
- Search in particular category in wordpress
- WordPress format json in postmeta table
- How to post data to a word press site in case of a mobile app
- Pass a PHP variable (loop-audio.php) to jQuery function (js/script.js)
- I am unable to fetch json data from wp_db
- JSON Object Value Show Undefine
- Force array to be a string [closed]
- get_body_params() is always empty in POST request
- How to enqueue structured data as file – jsonld file seems not to work
- Custom Navigation Bar JSON Syntax Error in JSON at Position 0
- REST API custom endpoints for metaboxes
- WordPress Register Block with metadata
- How to pass php array to external js file in WordPress
- Woocommerce – how can i add items to cart using onclick – multiple items at once with custom prices
- I have issue with decoding json ex. ‘{“a”:”b”}’
- Setting $_SERVER[‘HTTPS’]=’on’ prevents access to wp-admin
- Enforcing password complexity
- Adding a search form inside a div
- Dynamically change feature image in customiser
- Getting a fatal error while updating
- Using is_page() in functions.php not working at all
- comments_number display outside specified span
- Get stock by custom meta field on all Woocommerce variable products
- Set a condition based on WooCommerce checkout city field while placing order
- How to create a php variable using WordPress the_title() function
- How to edit php files in Child Theme?
- Way to bulk make all my tags lowercase?
- $Wpdb post meta query is not working with mutliple meta keys and values? [closed]
- Create a Blog Template Page
- How to make widget title accept php?
- Function works everywhere, how to keep it to execute when creating a new post
- HTML table attributes ignored
- How can i change variable if condition is not met
- Reading settings in the home page precisely home.php
- Calling function in loop causes repeat data
- How can I include the user id inside of a shortcode php output?
- How to use wp_nav_menu to create custom dropdown menu?
- Is there a hack for using is_page() within the function.php file?
- the_post(); prints out style text into my HTML?
- Require()/Include() post template adding extra content
- Approval by Admin to confirm the change
- In a plugin, How to update a json file using ajax
- Help with preg_replace
- Advertisement in Loop Posts wordpress
- WooCommerce multiple custom fields code
- How to display last whole post on the homepage
- Resource 404 error on multisite subdirectory install
- Saving category as insert post
- How do I get Roboto Google Font to display normal font-style? [closed]
- Save custom field value to variable for conditional – why is this not working? [closed]
- Cookie not created in AJAX request
- Understanding responsive imagery
- How to get meta box labels?
- get_query_vars always retruns empty value
- How to group by column a and sum column b and c in a php array
- Convert custom field date format to “WordPress default”
- Issue with WordPress Plugin Activation Hook and Table Creation