I am using
$.ajax({
url: 'http://localhost/wordpress-dev/mi/wp-json/wp/v2/cpt/',
type: "GET",
dataType: "json",
});
to load posts of a custom post type.
I have an array with ids and i need to modify the url to load only the posts with this ids. How is this possible?
something like:
url: 'http://localhost/wordpress-dev/mi/wp-json/wp/v2/cpt/1&2&3
thanks alot for any help!
