Questions tagged [wp-api]

Provides an easy to use HTTP REST API to access your WordPress site’s data.

This project was born to create an easy-to-use, easy-to-understand and well-tested framework for creating these APIs, plus creating APIs for core.

This plugin provides an easy to use REST API, available via HTTP. Grab your site’s data in simple JSON format, including users, posts, taxonomies and more. Retrieving or updating data is as simple as sending a HTTP request.

Official website

235 questions
0
votes
1 answer

issue with WP-API authentication

I have a wordpress page from which I am trying to create a post using the WP AJAX REST API. My expectation is that if the user is already logged in the auth cookie will be in place and I'll be able to do the AJAX POST with the user's context. Yet…
Z .
  • 12,657
  • 1
  • 31
  • 56
0
votes
2 answers

How to send ember js header request without ember data

I'm trying to make a call to the wp-api.org plugin for Wordpress. I want to show all users, and I want to use cookie authentication. Therefore I need to send a header request as explained on the website like this: options.beforeSend = function(xhr)…
Maarten Heideman
  • 545
  • 1
  • 9
  • 18
0
votes
1 answer

Ember / pull in data from multiple sources in one route

I am using the latest Ember.js and WP-API for a project. Everything is dandy on most pages, but one I tried to get data from different end-points onto the same page - I became lost. For example, I pull in the page {{title}} and maybe some text for…
sheriffderek
  • 8,848
  • 6
  • 43
  • 70
0
votes
1 answer

Ember CLI / resource / wp-api slug

For practice, and because the word 'post' is too confusing these days, I'm creating a resource called thought(s) - I'm getting some wp-json with the WordPress API (so the 'posts' are 'thoughts') - I'm setting the path to /wordpress with the…
sheriffderek
  • 8,848
  • 6
  • 43
  • 70
-1
votes
3 answers

Wordpress REST API: How to retrieve posts tagged by multiple tags?

Some people suggested using /posts?tags=tag_id_1,tag_id_2 or /posts?tags[]=tag_id_1&tags[]=tag_id_2 but wordpress seems to be returning posts that are tagged either with tag1 OR tag2. What I actually need is posts tagged with tag1 AND tag2. Anyone…
yoho
  • 17
  • 1
  • 8
-1
votes
1 answer

WP REST API V2 didint work

I installed JSON API plugin and it worked properly ,but its an old version then I installed WordPress REST API (Version 2) and it didnt make any result and just show this for my request: "Unexpected '<' "
Hippo
  • 43
  • 1
  • 2
  • 11
-1
votes
1 answer

Wordpress API - on click permalink - get single post and display

Like to get single post WP API on click and replace it inside main div newsPostsContainer - kind of like routing. I am successfully displaying a list of posts from an external source. If anyone can help with my code or recommend another…
roshambo
  • 2,624
  • 6
  • 31
  • 54
-1
votes
1 answer

WP JSON API with OAuth - Proper channel

I have Have WP API and OAuth1 plugins installed for my python frontend to access posts in wordpress. With CLI wp oauth add I have generated secret and key also. But am stuck on how to proceed further. I can check api responses via chrome advanced…
Nisha
  • 685
  • 1
  • 4
  • 16
-2
votes
1 answer

How to add posts using own plugin in wordpress

Creating a wordpress plugin and need this plugin to automatically add posts to wordpress when it installs. What is the better solution to do that?
-3
votes
2 answers

Cannot update taxonomy custom field via REST API (Wpapi)

I've created a custom taxonomy "vendors" in the following way: // Register Custom Taxonomy add_action( 'init', 'vendor_taxonomy', 0 ); function vendor_taxonomy() { $labels = array( 'name' => 'Vendors', …
1 2 3
15
16