The tag has no usage guidance.

learn more… | top users | synonyms

0
votes
0answers
8 views

How to view W3 Total Cache for testing?

I've attempted to cache JSON endpoints in WordPress by following this post: http://wordpress.stackexchange.com/a/115384 // Modify the output buffer callbacks of W3 Total Cache to work with the JSON ...
0
votes
0answers
14 views

Wordpress Android Apps [on hold]

Does anyone know if someone has already used the json rest api to make an android app that displays their wordpress site and has put the souce code for their app on github or some other equivalent ...
0
votes
0answers
25 views

PHP > Scheduled Tasks > Sending daily email with dynamic API variables

I'm trying to write a PHP cron job that would call an API, return a set of numerical variables, calculate a second set of variables, and send an email to selected recipients with those variables ...
0
votes
0answers
15 views

update_post_meta with JSON string

Sorry for my bad English I need to write the function update_post_meta json in the meta_value. My code $s ='a:2:{s:9:"detailbox";O.......................... .:"format";s:0:"";}}}}'; ...
0
votes
1answer
32 views

Changing order of db results when encoding to JSON

There is probably a very simple solution to this but I just can't work it out. I am getting some info from the wp database, bypassing WP's built in classes, then echoing the results as encoded JSON ...
1
vote
1answer
30 views

creating shortcode to pull json array

Frankly - this may be a duplicate of another question I have out there. Sorry if it is. I'm learning this site and PHP/Wordpress development. I have partnerships with local sites that use JSON and ...
-2
votes
1answer
27 views

How to get posts from external website with tags common using ajax Json? [closed]

Plzzz How to get posts from external website with tags common with current post using ajax Json and show it in my website.
0
votes
1answer
12 views

Jetpack JSON API configure button not showing [closed]

Installed fresh WP on my Hostgator - shared host plan. Installed Jetpack, connected to wordpress but can't make the JSON API to work. After activating there's no Configure button just deactivate ...
0
votes
0answers
20 views

How do I prevent an infinite-loop. wp_insert_posts + JSON

I'm downloading posts from JSON file with this code: $bands = json_decode(file_get_contents('json file url'),true); $arrayLength = count($bands); for ($i=1; $i <= $arrayLength-1; $i++) { ...
0
votes
0answers
24 views

How to get data from external api into wordprss post/page

how can i use an api into WordPress post i want to use the data from http://www.xmlsoccer.com/ its ip is on xml data also i want to add multyply apis on one single post if it is possible is there ...
0
votes
0answers
40 views

Wordpress ajax load more returns duplicated posts

I'm trying to load more posts from my custom post type via ajax call, it sounds like i'm doing everything alright but one thing which is causing the duplication issue. My load more button does work ...
0
votes
2answers
44 views

Ajax contact form returnig 0

I have read through a lot of responses on this site and am unable to find the issue with my code. The form is : <?php while (have_posts()) : the_post()?> <form method='post' ...
2
votes
0answers
28 views

JSON not valid after json_encode posts

I'm having problems saving JSON in a custom table in my database. I pull some posts (+ connected posts) from the database and add them to an array. This is a part of my array: array(2) { ...
0
votes
0answers
26 views

Create and Update a Json file

I have been tried merge two piece of code, but I'm not a developer. It's a little hard for me =( I need build an auto update .json file with some custom fields for a personal project. I have this ...
0
votes
0answers
68 views

WP REST API returns post image URL with double backslashes

I'm trying to create a mobile application that use WordPress as a backend CMS, i was able to get the JSON output using WP REST API and reuse what i need from the output in my application, but i have a ...
0
votes
0answers
88 views

Import facebook feed as a post in wordpress with 100,000 of posts

I need to import facebook feed of one of my facebook pages as posts to wordpress site using facebook graphic API. For this purpose I am fetching the json file with all the posts from facebook in it ...
0
votes
1answer
30 views

Control character encode after using jquery autocomplete

I'm using jQuery UI autocomplete for three different form suggestions. Everything is working good, the only issue is that titles suggested aren't utf-8 (I think): Instead of "Bla bla - Bla" I have ...
-3
votes
1answer
48 views

How to print the output of the json?

I have this code :- function retrieve_comments(){ $myPost = $_REQUEST['post_id']; $output = get_comments('post_id='.$myPost); if(is_array($output)){ ...
0
votes
2answers
100 views

Call Ajax URL in Plugin

Plugin Class File: function __construct() { add_shortcode('user_registration_form', array($this, 'shortcode')); } public function hook(){ add_action( ...
0
votes
0answers
11 views

Generate attachement to Post from featured image

I am using WP-JSON API Plugin. If i choose an image as featured that is allready uploaded in my media library it does not generate attachements Object in JSON like the example bellow. ...
0
votes
1answer
81 views

Return scheduled posts with WP REST API

I'm using WP REST API plugin for a custom web application and I need to get access to the scheduled posts of the target wordpress website. However I can't find any parameter or filter to achieve this ...
0
votes
0answers
54 views

Insert XML data into the existing posts

I have nba videos news website and I want to insert xml data into the existing posts. For ex I have this post Pacers vs Timberwolves Match report and I want to import data from this xml: ...
0
votes
1answer
47 views

Can't add classes using jQuery from a JSON string with get_body_class()

In order to refresh the classes on the <body>element after an AJAX call, I am writing at the top of my AJAX response the following in JSON: $o[ 'classes' ] = get_body_class('project'); I can ...
0
votes
0answers
47 views

Dump all posts to file via WordPress JSON API?

I would like to dump all posts to a JSON file so I can include it in my mobile app project. That way, the app can work offline for the most part, then I just have to query new and modified posts from ...
0
votes
1answer
73 views

Ajax specific template not loading in replacement of index.php

Following my previous post (Full-Ajax Theme: parseJSON error while building a JSON object from a Wordpress custom template) regarding a few problems concerning JSON (now resolved), I am trying to load ...
0
votes
1answer
79 views

Full-Ajax Theme: parseJSON error while building a JSON object from a Wordpress custom template

Trying to make a full-ajax navigation on my new portfolio, I read online on a few different blog that building the templates using JSON would be easier in order to treat the datas however I want. It ...
0
votes
1answer
19 views

Retrieve custom taxonomies

I want to make plugin to make custom taxonomies for custom post type like wp-admin/edit-tags.php?taxonomy=store_cat&post_type=store_kyd_app and register this taxonomy at stores.php public ...
0
votes
1answer
93 views

Retrieve list of taxonomies in json

I have custom taxonomies like that /wp-admin/edit-tags.php?taxonomy=my_cat&post_type=my_poet I want retrieve list of taxonomies in json add_action('init', array($this, 'json_handler')); I ...
0
votes
2answers
486 views

AngularJS with route and JSON API

I tried to use AngularJS with the plugin JSON API. I have no error but the route doesn't work, and the page doesn't print the partials/... ? I changed the permalinks to %postName%. I use MAMP and my ...
0
votes
0answers
217 views

Loop through multidimensional array for values, then interest into mySQL table

I have a package of JSON that gives me something like this: [{"a":"5", "b":"9", "c":"3"}] I have a table with with three columns: a, b, c. I want to create entries into the table to match 'a', 'b', ...
0
votes
0answers
68 views

Hook before posting via JSON REST API

I have been testing out the JSON REST API the past few days with some pretty good results however I have run into a bit of a barrier when making a post. I need to hook into the post call before the ...
0
votes
0answers
44 views

Using remote data in post/pages/widgets in Wordpress custom plugin by jSON

I have a URL like this: http://examplesite.com/manage/access?id=22&access_key=12345678 This is a jSON file. I want to create custom Wordpress plugin and put this access key in the plugin. When I ...
3
votes
1answer
270 views

Show popular post in another php website via WP REST JSON API

I need to show popular & recent posts in another php web site under the same domain. example: domain.com -> main website (php, mysql) domain.com/blog -> wordpress blog Need to show popular, ...
0
votes
1answer
221 views

WP REST API. Configuring JSON routes

I am working through the documentation on wp-api.org/ and trying to get my head around this awesome plugin, but I have a question that I can't find the answer to anywhere, so thought I'd ask...it's ...
0
votes
1answer
23 views

Custom url in wordpress

I want to make custom url and handle it from my plugin Ex:- domain.com/myplugin=endpoint&id=num&.. i want to return just json data not template Thanks
0
votes
0answers
62 views

Implementing the wp json-rest api

I have a client that wants to use the wp json-rest api to allow third-party sites to push custom posts (in this case property listings) up to our site. I've been looking at using the wp json-rest ...
0
votes
1answer
51 views

Result from wp_send_json adds line feed

I've got a local Windows stack running AMPPS at 5.4.35 and my code runs fine but when I deploy to my Bluehost server running PHP 5.4.28 the execution of wp_send_json is different. wp_send_json( ...
0
votes
0answers
1k views

Uncaught TypeError: Cannot read property 'ajax' of undefined

I'm trying to show data from a JSON object in the content section of a WordPress website. The following static HTML works like a charm. <!DOCTYPE html> <html> <head> ...
1
vote
2answers
1k views

Implementing Isomorphic JavaScript (React JS) in Wordpress?

I'm about to start with a new project and would like to incorporate React as I want to learn more about it and this specific project would be perfect to get started as it's not that time sensitive and ...
0
votes
1answer
298 views

Fatal Error in \wp-admin\includes\misc.php after failed WP update

I was recently approached by a client whose wordpress site had been hacked. The hack caused traffic from search engines to be hijacked to cuteonbags.com. I narrowed down the malware in question and ...
3
votes
6answers
584 views

I want to create a custom slug in WordPress and output JSON. How do I do this?

I have an array: $cats = array('Hobbes', 'Simba', 'Grumpy Cat'); I would like to create a custom endpoint called "http://example.com/cats". Whenever you visit this URL, have it output the array as ...
1
vote
0answers
901 views

Wordpress wp-json API - Custom Post Type returns 403

I've been trying for a full day to get a really basic install of the WP-API to answer to a custom post type (in this case called 'transactions'). The post type is set up and fully public, and it's ...
3
votes
2answers
532 views

Allowing admin-ajax.php to receive “application/json” instead of “x-www-form-urlencoded”

I'm using AngularJS's $http function to send my payload to WordPress's admin-ajax.php subsystem, but it seems the latter only accepts x-www-form-urlencoded data, instead of the application/json ...
0
votes
1answer
42 views

Is it possible to pass variables to WordPress externally?

I would like to know if it is possible to pass json variables from a form which is located outside WordPress? This is the situation: The user fills a form located on x server. Then his answers are ...
1
vote
1answer
38 views

JSON - Permission Error?

I have two dropdowns to filter posts on a website. The second dropdown populates based on the selection of the first, ie: [CATEGORY] + [SUB-CATEGORY] = SEARCH The problem is that occasionally the ...
0
votes
1answer
201 views

AJAX Call in Plugin Returns More than JSON

I have a plugin tat extendeds Gravity Forms consisting of one PHP file and a JS file. The PHP file can be found here: http://pastebin.com/VUX5AfLP The JS File can be found here: ...
0
votes
3answers
197 views

Create a file format (csv,json,etc) when save/update a Post

I need create a file (any type: json, php, csv, txt) when I create or update a post from WPadmin. The format structure would be: ID, "operation to execute" (new post, update post, delete post), ...
0
votes
0answers
132 views

Ajax JSON response works for admin

I try to add custom post type object from front-end form with AJAX, right JSON response works only if i logged as admin, otherwise i get html code of main page, but object is added. js: var ...
1
vote
1answer
649 views

Querying A Post That Includes Two Taxonomies Using JSON Rest API

I'm using the JSON Rest API plugin (https://wordpress.org/plugins/json-rest-api/). I have two custom taxonomies with one term each: Inner Part Categories Eye Symptoms Categories (Man) Broken Bone ...
0
votes
0answers
63 views

Cannot save json in wp_insert_post

This is my code. $offer_name doesn't get saved. $obj = json_decode($result, true); $i = 0; foreach($obj['response'] as $item) { for($i=0;$i<=$item['count'];$i++) { $offer_name= ...