1

Im trying to get the posts by category. using this URL:

/api/core/get_category_posts/?slug=cat2

But responding this:

{"status":"ok","count":0,"pages":0,"category":{"id":3,"slug":"cat2","title":"Cat2","description":"","parent":0,"post_count":7},"posts":[]}

Posts are empty! any idea?

1
get_category_posts/?slug=cat1&post_type=project

I forgot to set post_type.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.