The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
0answers
19 views

Developing a plugin, ran it through P3 Profiler, shows up slow, but I don't know why

I am having an issue with my plugin I'm developing. After using the GoDaddy P3 Plugin profiler, it shows that is taking up a large amount of runtime, but the plugin itself is very minimal. It just ...
0
votes
1answer
12 views

jQuery AJAX add json2 dependency?

I am working on a voting system in Wordpress with jQuery and AJAX. To make this voting system work I need jQuery in my theme. So wrote the code down in my functions.php. But for some reason my script ...
0
votes
1answer
90 views

Implementing backbone.js to retrieve category posts using JSON API

Note: I reformulated this post after solving my original problem because I immediately ran into another problem that can fit under the same title. First I'll summarize the first problem and my ...
0
votes
0answers
23 views

Is there a way to share a template/markup with the JSON API so that it doesn't need to be declared both in PHP and in JS?

Current Setup I'm using WP's JSON API on a custom post type archive to query some posts. I then parse the returned JSON object to output my markup accordingly. I also have a single post type template ...
0
votes
0answers
25 views

WP Import changes JSON string

I have this JSON string in my exported XML file ...
0
votes
0answers
22 views

JSON get data from registration

I just want send data from wordpress registration of each new user to Emailomat (API here: http://hikaru.cz/doc.htm ). But I don't know JSON and this documentation is not helpfull for me. Can anybody ...
0
votes
0answers
59 views

JSON API similar plugin can't set custom fields

I'm trying to use a similar plugin to JSON API, called ScrollBlog. I'm using two custom fields, an external link and an author's name. JSON API parses them ok, but when I try to use ScrollBlog (coding ...
0
votes
0answers
26 views

retrieve data form wordpress into app problem with $.ajax access to an object

i'm working on my first app, based on my blog created with wordpress, anyway the problem is that i can't access to to different categories using json api. This my code: var requestData = { ...
0
votes
0answers
28 views

How to schedule future and past posts with metaWeblog.newPost

I am attempting to remotely post articles to a wordpress page and no matter what I attempt to do I cannot publish in the future and the past. I have commented out some past attempts (some found on ...
0
votes
1answer
36 views

Retrieving a JSON feed of my posts and displaying thumbnails

I want to show a feed of my latest posts though json. I seem to be able to do it - up to a point. I am retrieving my feed like so: var json = <?php echo json_encode($query->get_posts()); ...
0
votes
0answers
22 views

wp_nav_menu transferred to other domain using JSONP - menu not echoed in correct place

I have a WP website, and a related shop that's on a different domain / site. I want to have one navbar that I can update in wordpress that will also update the shop without me having to do it twice. ...
1
vote
1answer
388 views

Create post using JSON api plugin

I am working on a project where the user writes their content on one wordpress blog (as a draft) but wants it published on their own wordpress blogging site. This seems strange but it is the core ...
0
votes
2answers
101 views

REST API page not found

I'm trying to get the json form of data of my web. My web url is http://ecseventsfeed.x10.mx/wordpress/ I tried to follow this post, ...
3
votes
1answer
380 views

Trying to get custom post meta through Jetpack JSON API

I'm using the Jetpack for Wordpress to produce a JSON API for my Events custom post type, which works fine: https://public-api.wordpress.com/rest/v1/sites/MYSITE/posts/?type=events&number=100 ...
0
votes
0answers
129 views

How to authenticate wp User though JSON?

I am developing an android application that is using wordpress as the base for its user management, now I want the users to be authenticated against the wordpress database through JSON. I am trying to ...
1
vote
2answers
266 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
1answer
65 views

access JSON results from wordpress database with wpdb

I have JSON results from Google API added to to wp_options table. At this point I just need to echo the specific elements. Namely, the coordinates. The option_name I have is py_menu_item. One of the ...
0
votes
0answers
261 views

JetPack + WordPress + JSON REST API Oauth

I'm developing a third-party blog. A WordPress site for a client. I'll be using the JSON WordPress API to communicate with the blog from an external page. Currently the blog is hosted at ...
1
vote
1answer
133 views

Vagrantpress + composer

I was looking at the roots.io blog, where I learned about Vagrant and Composer which in combination seem to give you a more intelligent development environment and dependency management system. I ...
1
vote
0answers
105 views

Help with JSON decode and foreach [closed]

I have this XML: http://eutils.ncbi.nlm.nih.gov/entrez/eutils/esearch.fcgi?db=pubmed&term=science[journal]+AND+breast+cancer+AND+2008[pdat]. And I would like to get some information with JSON and ...
0
votes
0answers
65 views

how to display json_encode via $wpdb

ive been struggling for quite a while how to make this work. i created a custom php, and used it as a template page. [below code] i also ended up with this link //localhost/site/?page_id=43 if i ...
1
vote
3answers
654 views

using wp_remote_get instead of file_get_contents [duplicate]

have run my theme through the Theme checker plugin and it seems upset about use of 'file_get_contents' to get a json url. I've found posts saying i should use wp_remote_get. I'm currently decoding the ...
0
votes
1answer
906 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 ...
1
vote
1answer
181 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
93 views

attachment media-template data model (data.size.url)

I'm trying to build a media library where users can choose pictures that are being retrieved from custom folders, which they can specify the basefolder of. I'd like to keep using as much WP ...
0
votes
2answers
198 views

Pass a PHP variable (loop-audio.php) to jQuery function (js/script.js)

I've searched a lot for this and I seem to get different answers. In my situation, my jQuery function has to use a PHP variable from a different file. How can I accomplish this? Clear and simple ...
2
votes
1answer
268 views

JSON: schedule creation of json file

After some research I've managed to create a json file which I use as input for Twitter's typeahead (prefetch). On my website I have several hundreds of events and several thousands of artists (both ...
0
votes
1answer
173 views

Save JSON object attributes to custom metabox

Case: I use a imagepicker.js script to create a image picker for my custom meta box. But this doesn't work for WP 3.6 anymore, So i'm trying to create a image picker metabox with the new media ...
0
votes
0answers
210 views

import json data as wordpress posts

hi i was wondering how can i import a very large json file into wordpress and then convert the json data to posts, i have found this https://github.com/dgrundel/woo-product-importer which allows csv ...
0
votes
0answers
57 views

Developing with wp_oembed_add_provider

I'm developing an app on my localhost using NodeJS. It runs on localhost:8001 and I've been trying to add embed functionality to this locally run app as follows: wp_oembed_add_provider( ...
0
votes
1answer
227 views

Create WordPress posts from JSON array using plugin in admin

I'm writing a WordPress plugin that I'd like to do the following: Add a WordPress plugin admin page that contains a button When you click the button, it loads an array of JSON objects from a file, ...
0
votes
0answers
63 views

JSON API plugin exclude categories

When I use http://www.example.org/?json=get_category_index it shows all categories. I want to exclude some unnecessary categories from get_category_index list from the site output. How can i achieve ...
1
vote
0answers
295 views

Why is json_decode failing?

I'm trying to determine if this is related to my having the latest version of PHP on my server while using the latest version of Wordpress. Or if I'm just doing it wrong: Here's my function that is ...
0
votes
0answers
121 views

Parsing JSON response in WP from non-WP site to load a post based on a returned ID

I have a Wordpress site that will be pushing remote calls to a non Wordpress application (one that is making predictive decisions). The system my WP site is talking to will then return a post id to ...
0
votes
0answers
54 views

Is it possible to make Wordpress as a RESTful app?

I'm planning to create a Wordpress plugin that accepts data via cURL and sends a JSON reply. The plugin will save the data in the database upon receive so there has to be some authentication and will ...
0
votes
0answers
189 views

How does the JSON API work to parse incoming JSON and fetch a post based on an ID?

So I have to interact with a large, seperate system on another server that is going to return, at the very least, post ids to my wordpress install in json format. And before others might ask why I'm ...
1
vote
2answers
434 views

Creating post content from external web scraper via JSON or RPC

I'm looking for a way to post content from a web scraper external to our Wordpress site to post content its scraped into our site. Right now, I have the scraped content formatted into JSON. Could I ...
1
vote
1answer
60 views

Placing assets for external use

I'm developing a plugin, that is meant to work on external requests to a wordpress site. The plugin will generate a .json file, and will come with 2 default .css style and 1 .css file that will ...
0
votes
1answer
1k views

Import JSON feed to Wordpress

We have received a URL which is a JSON file apparently: http://www.domain.com/tools/export-json/?destination=hawaii I am completely clueless when it comes to JSON and Wordpress. Anybody know where ...
0
votes
0answers
183 views

Different way to export data from WP?

does anyone one if there is any other way how to export all data from WP than than the default export plugin? I need it because I have JSON arrays in my custom fields and when I import XML file ...
0
votes
0answers
190 views

Is there a way to force Featured image to show as attachement?

When adding an image as a featured image to a post - if the image is an existing image in the Media Library, then the image is not added as a true attachment but as a thumbnail, shown like this in ...
0
votes
1answer
316 views

JSON API not showing full content

I am trying to create a Windows Store App using IdeaPress (https://github.com/ideanotion/ideapress/issues), which relies on the JSON API Plugin ...
0
votes
1answer
144 views

Jetpack API for Wordpress Network

Wordpress provided a lovely Json API with Jetpack. I cannot seem to to find a way, or documentation on getting data from a multisite wordpress install? It seems to fail on sites like ...
0
votes
0answers
222 views

Save Google geocoded address to database?

In my WordPress admin I have an address field for each post (custom post type). The address is just a string. I need to find the country and region for each post, which I have been doing somewhat ...
0
votes
2answers
442 views

json_decode does not work on Wordpress

I'm trying to convert a json string back into an array in wordpress. Here is the json string that I'm getting back from the database: [ { "item_title": "Kindle Fire HD 7\", Dolby Audio, ...
0
votes
1answer
174 views

wordpress is adding a second backslash when I use addslashes

I don't know why but it seems like wordpress is adding a second backslash when I'm using the following functions: addslashes($str_with_single_quotes) ...
2
votes
4answers
3k views

Wordpress REST endpoint with JSON for Mobile App integration

Is there some REST API that Wordpress supports, out of the box or through any plugin that exposes the same information exposed through the normal pages? (I.e. latest posts, filtering by categories ...
2
votes
1answer
367 views

fetch_feed: retrieve entries in the appearing order, not chronologically

I'm using WP function fetch_feed to retrieve a feed and display its items. <?php /* include the required file */ include_once(ABSPATH . WPINC . '/feed.php'); /* specify the source ...
0
votes
1answer
54 views

Generate aggregated feed from member blogs

I currently manage a multisite installation with 7 member blogs. We need to produce a combined RSS feed of news from all 7. Currently we use Feedwordpress to syndicate 6 blogs into blog number 7. This ...
0
votes
1answer
1k views

How to list categories and subcategories in JSON format?

I need to integrate this plugin with my WordPress site, and the categories must be in this format: "Option 1": {"Suboption":200}, "Option 2": {"Suboption 2": {"Subsub 1":201, "Subsub 2":202}, ...