خرید بک لینک

Vote count: 0

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!

asked 1 min ago

برچسب: نویسنده: استخدام کار تاريخ: سه شنبه 24 فروردين 1395 ساعت: 4:12

صفحه بندی