The tag has no usage guidance.

learn more… | top users | synonyms

0
votes
0answers
18 views

how to display term name angularjs

I've recently learned about angularjs and I am trying to display a term associated with a specific custom taxonomy. So far this is what I've tried in my partials file - <div ng-repeat="post in ...
1
vote
2answers
605 views

Retrieving JSON data in ajax request from media uploader

I'm having some problems getting my JSON data that's being passed via an ajax request. I'm trying to implement the media uploader into a plugins settings page. I've got it functioning properly using ...
0
votes
1answer
141 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
2answers
721 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
2answers
318 views

Get WP Navigation Menu from REST API V2

I'm trying to get the navigation menu from JSON response using WP REST API v2 plugin. There is no navigation menu plugin extension for the REST API v2, but only for V1. From codex WordPress Post ...
0
votes
0answers
11 views

Best practice for pulling in data from simple 3rd party API

We have a simple template in our WP site that will display a list of companies. Each company has 4 attributes (ID, name, logo, category/industry). We have been provided with an outside api ...
0
votes
0answers
26 views

Define JSON file values by admin user

I have couple of long JSON files with predefined keys and want to have the values updated by the admin user. So I'm looking for a way where the developer (SuperAdmin in my case) can upload a JSON file ...
0
votes
2answers
188 views

Unset data in custom post type WordPress API (wp-json)

I can already unset (remove specifics from normal posts) in the json returned from the WordPress API. I actually use the following below from this example: ...
0
votes
1answer
3k views

Parse wordpress blog data using json api and ajax

I have seen lots of responses to how to extract data from wordpress blog posts using the json api plugin. Many uses $.getJSON, $.ajax, .responseData.feed.entries, success function() etc. What is the ...
0
votes
1answer
33 views

How to use json_decode a post_meta value? [duplicate]

I have used get_post_meta($post->ID) to get all custom fields for my post since I have many of htem. Some of them were checkbox values and var_dumping the variable gives me this array (size=1) 0 ...
1
vote
3answers
90 views

How to use the new Wordpress 4.4 JSON API?

Until today I have used the plugin "WP REST API (WP API)". Now I want to use the built-in API but can't find any documentation on it. Any idea?
12
votes
4answers
3k views

How to cache json with wp-super cache

In a new project we are using wp-super-cache (the client's preferred plugin) to create the static html files for custom content types. But we are trying to figure out if everything is being cached ...
0
votes
0answers
16 views

Custom Permalinks for JSON Feed

What file-name would I make to allow the following permalink. Wordpress/Custom-Archive/ID/Title I have created the Custom-Archive with achive-slug.php and the ID seemed to work under that as well ...
1
vote
1answer
1k views

Intergrating agile carousel to wordpress: how to write the ajax_callback function

json is totally new to me how to write an ajax_callback function for agile carousel to work in wordpress? Below is the jason data format that I need to write as php arrays for it could be parsed by ...
3
votes
1answer
107 views

importing third party json feed as custom post type [closed]

I have a third party json feed http://feeds.artlogic.net/artworks/artlogiconline/json/ that i need to use to import data in wordpress as a custom post type called "artwork". Are there are handy ...
-2
votes
1answer
33 views

Edit Category - WooCommerce REST API

I was wondering if its possible to edit/rename a product category in WooCommerce via its REST API? Thanks.
0
votes
1answer
32 views

Querying Posts Using JSON API

I am looking at the WordPress JSON API Plugin. What I'd like to do is query all posts in a custom taxonomy term called wales. I have been able to get all posts in the post type listings using this url ...
1
vote
1answer
131 views

How to loop through JSON data in wordpress WP REST API

I am using the WP REST API plugin in wordpress and want to loop through my json data using a for each loop, however when I var_dump the variable that the json data is stored in it gives me an error. ...
0
votes
1answer
40 views

return content section as json in wp rest api v1

I am using WP REST API. I want to get the posts from my blog and show them in my android app. So, everything is OK, but i need to ask a question to make sure about something: when i call posts in the ...
0
votes
1answer
116 views

Remove a field from json in wp rest api v1

I want to create an android app for a WordPress blog using WordPress rest api. For optimization I want to remove content field and some other fields when I get all post to show them in my main list ...
5
votes
3answers
4k 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
2answers
40 views

How to get those data using with ajax json?

The following coding is the out come of an other page php echo user_list.php: $myarray=array(); ... ... $myjson = json_encode($myarray); echo $myuser->searchUser($myjson); and the result of ...
0
votes
0answers
55 views

Wordpress REST API not returning all posts

I am trying to get the json data of my posts. I have tried with both v1.2.4 and v2 of the REST API plugin. If I enter http://example.com/wp-json/posts?type=magazine or ...
0
votes
2answers
148 views

Wordpress Ajax JSON success return no being recognized

I'm working on a contact form for a website using an jQuery Ajax call method that then uses Wordpress's building in admin-ajax.php to submit the form's values, send them to an email address via ...
0
votes
0answers
43 views

Get private posts by Wordpress API

Now i'm using Wordpress API for my iOS app and I have a problem with get posts API: I want to get all visible posts of a site ( all public posts, event posts with password ) but I can get publics post ...
0
votes
1answer
41 views

how to remove/exclude html coding from json file while export?

I have created a file using json and exported it. Its creating HTML tags with it. Actually,I don't want to have that html part to be there in the file. Below I am sharing structure of my current file: ...
0
votes
0answers
35 views

WP API Get Request Dynamically Load the_content

I have formatted my posts as follows, using the normal Loop: the_title the_date the_excerpt Using a "Read More" button onclick and the WP API v2 JSON data, how can I dynamically expand the post to ...
1
vote
2answers
30 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
1answer
192 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
95 views

Load data via xml api and display it in your posts and pages

it is possible to implement xml api data in WordPress site, i found a plugin that support only json https://wordpress.org/plugins/json-data-shortcode/, how to load data via xml api and display it in ...
0
votes
0answers
40 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
92 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 ...
3
votes
1answer
2k views

How to get featured post title & image using JSON API?

Is there any possibility to get featured post title and image using the JSON API. I tried using this: example.com/?json=the_post_thumbnails&count=3 But instead of recent posts, I get featured ...
0
votes
1answer
50 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 ...
0
votes
0answers
41 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:"";}}}}'; ...
1
vote
1answer
62 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 ...
0
votes
1answer
52 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
35 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
73 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
233 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 ...
7
votes
2answers
3k views

Building a custom REST API

I have a WordPress.org site which takes user input, searches a custom database and displays the results of the query. I have this working using the wpdb class. Now I'm trying to get this working for ...
0
votes
2answers
50 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
54 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) { ...
1
vote
0answers
97 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 ...
-3
votes
1answer
57 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
1answer
363 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 ...
1
vote
1answer
920 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 ...
2
votes
2answers
2k views

AJAX returns response 0

I'm trying to get user profile values using an AJAX call, but the response is always 0. Here's my PHP: wp_enqueue_script( // Add JS to <head> 'cc-author-change-post-author', ...
0
votes
0answers
141 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
102 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 ...