The api tag has no wiki summary.
0
votes
0answers
21 views
Get plugin info from Wordpress.org repository API with plain PHP code [duplicate]
The documentation of the Wordpress.org API is quite terrible. It links to a website that gives a 502 Bad Gateway error.
To be precise, how should my POST request look to the ...
2
votes
1answer
121 views
In the new Theme Customizer API, how to send a value from the front back to the admin panel?
I'm digging a bit into the new Theme Customizer API, in particular into the javascript one, and what I find is delighting.
I've managed to add my own custom parameters, and I also have the javascript ...
0
votes
1answer
50 views
Count posts returned by get_posts in external PHP script
I'm using WP from an external PHP script by including the wp-load.php file.
All functions and everything works as expected so far, except one thing: I can't get the $wp_query->found_posts to work ...
0
votes
0answers
13 views
Wordpress Login Customization for External Authentication
I'm not sure which approach is best but my situation is something need to tie the admin login with external authentication source. I mean, WP normally is:
wp-admin ---> Check with WP Database ...
0
votes
1answer
79 views
Import tumblr post to wordpress blog
When I add a new post in my tumblr account, automatically that post of tumblr would be sync with my wordpress account. Its not necessary that at sync time I have to be logged in wordpress. In simple ...
1
vote
1answer
112 views
API for wp menu hacks
Question changed due to new developments!
I was loooking for a way to hack the menu items in the custom menu page to add a "hide" checkbox and other options. The only way I found is to override the ...
-3
votes
0answers
28 views
JSON API custom fields not showing full content
I have custom edited JSON API plugin and it looks like that
http://domain.com/api/posts/getByCatId/?dev=1&cat_id=7
and I get only 5 items but I have much more in database.
I try
Open file ...
6
votes
1answer
198 views
How to create an API for my plugin?
I have been developing plugins for WordPress. Most plugins I have developed with two three classes and not so huge like Buddypress, WooCommerce or etc.
I am planning to make two open source plugins ...
0
votes
1answer
111 views
$_POST['message'] gives a 404
I am using Wordpress 3.3.1 and building a small API to be able to send an SMS to insert data.
<?php
/**
* Template Name: API: Response
*
*/
print_r('hello');
?>
The following $_POST ...
0
votes
0answers
61 views
Wordpress + PhoneGAP [closed]
I'v been working around on solution to manage Wordpress user sessions with phoneGAP, un-top of that i must limit the content being shown and also the number of active session per user. Some of the ...
8
votes
3answers
4k views
Programmatically add a Navigation menu and menu items
Through API functions, I want to define a new Navigation menu, select it in the current theme, and then insert a few Pages as menu items. This is to be done for instance on a theme activation.
...
0
votes
0answers
36 views
Get latest Facebook page update and display it in theme
Is it possible to display the latest post from a Facebook page (Not personal profile) and display it on my website?
I've tried this http://wordpress.org/extend/plugins/recent-facebook-posts but it ...
0
votes
1answer
22 views
What's the most minimal way in which a page can be hooked into WP?
I do a fair bit with custom API's on WordPress-based sites, typically by creating page templates.
However, creating a custom page template, then creating a WP Page that utilizes it is kind of a pain ...
6
votes
1answer
201 views
Using the Rewrite API to Construct a RESTful URL
I'm trying to generate rewrite rules for a RESTful API. I just want to see if there is a better way to make this work than having to write out every possible rewrite combination.
Ok so I have 4 ...
3
votes
2answers
152 views
List Table API - Safe to use?
Just curious what developers think about extending the WP_List_Table class for use on plug-ins.
I am working on a plug-in that will show a list of users (ID, name, email) then pull data from another ...
-1
votes
0answers
51 views
Google map plugin fully customizable? [closed]
Any WP plugin to show Google maps in some pages with these requisites:
Some kind of API to dinamically query the location data from WP DB. Lat/long are stored in a custom field of custom post types ...
1
vote
1answer
22 views
How can I send edits to my blog programmaticly?
I have started a very simple wordpress blog for a hockey pool I run. The site is located at: http://thekeeperpool.wordpress.com/
I manage the actual stats counting and player movement using a local ...
0
votes
0answers
24 views
Is it possible to enqueue the Youtube API script or does it have to be inline?
The code below is the main part of a function in my functions.php which returns a div and script which ultimately output a youtube API iframe to the template where the code had been called from. At ...
1
vote
1answer
124 views
I want to retrieve all posts of a blog without username & password
I want to make an android application for my wordpress blog, I want to display there all my blog posts with many options like category wise, date wise, search wise etc...
How Can I retrieve all my ...
3
votes
1answer
880 views
Create API for single sign-on with 3rd party site
My site needs to integrate with a 3rd party software, which will live on its own sub-domain, hosted by the software company. I need to provide the 3rd party developers with an endpoint that they can ...
3
votes
2answers
1k views
WP function/filter for modifying http headers?
Is there a dedicated WP function, action or filter to use when adding/modifying the HTTP headers?
For now I just hook a PHP header() call into the WP 'init' hook like this:
add_action('init', ...
0
votes
0answers
52 views
Wysija API - can't find any docs anywhere [closed]
As I mentioned in the title, I can't find anywhere some reference manual about Wysija Newsletters plugin.
On my project, I have some users admin area, so user can login to the site and change there ...
1
vote
0answers
47 views
Connect external web app to wordpress
We have a web app that will allow users to edit their videos, add intro/outro/watermark. Once the user already done on their video. We need to provide an option to post/syndicate their video as a ...
10
votes
3answers
307 views
Wordpress API Menu/Submenu Order
I'm developing a child-theme using Wordpress 3.4.2 and the development version of the Options Framework by David Price. This is my first theme and I'm relatively new to this, so I've had a look into ...
0
votes
2answers
346 views
Displaying the post count of all custom taxonomy terms in a list format
I thought this would have displayed the post counts right next to the clickable links
wp_tag_cloud(
array( 'taxonomy' => $taxonomy,
'format' => 'list',
'smallest' => 12,
'largest' => ...
2
votes
3answers
125 views
WP.org API: Accessing plugin downloads “Today” value?
I'm developing a plugin to display stats for downloads and various other information that developers might want to display on their sites about what they have developed.
I've found documentation on ...
0
votes
2answers
47 views
Is Wordpress API visible from PHP file called in htaccess
I'm trying to add some rewriterules in the .htaccess file to deal with hotlinked images - specifically I want to add the URL from the post where the image appeared to the header location information ...
2
votes
2answers
72 views
How to override a function call in functions.php?
In functions.php of a theme makes a call to show_admin_bar(false) which hides admin bar in front end:
if (!is_admin())
{
wp_deregister_style( 'bp-admin-bar' );
if ( function_exists( ...
2
votes
1answer
105 views
wp_insert_comment error. puzzled by date value
I am trying to programmatically insert comments in a bulk operation as part of migration routine.
Comments are in a SQL server table.
I receive the date info from the SQL server table field and ...
4
votes
1answer
82 views
External WordPress API
I'd like to manipulate a WordPress website from another program/website. IS there an API already written that provides access, and authentication, to do this?
Ideally, I'll be using a multi-site ...
0
votes
2answers
182 views
Does Wordpress support a shortcode calling itself from within a shortcode call?
I've built a super-crazy Wordpress framework that has a million and one shortcodes, one of those is a columns shortcode which supports a count parameter that allows you to define a column and the ...
0
votes
1answer
93 views
How to create download links based on Custom Fields with Rewrite API
For me this is quite hard to do, but I guess that this could be easily done by an expert. :)
Let's suppose I have a post, which is a custom post type resources, with the following data:
Post Slug: ...
1
vote
3answers
832 views
An Unexpected HTTP Error occurred during the API request
I just did a clean install of Wordpress. But I have a problem when I install or use the WordPress API. So send me a sign
An Unexpected HTTP Error occurred during the API request.
The strange ...
1
vote
3answers
216 views
Does WordPress's HTTP API use any caching?
I'm working on a plugin to will retrieve data from a remote server and display it on the Dashboard. To do this, I'll be using the WordPress HTTP API but I'm not seeing any information on the HTTP API ...
1
vote
2answers
918 views
How should I use register_setting, add_settings_section, & add_settings_field in my plugin's options page?
I'm working on a settings section for my plugin, and after reading over Wordpress's documentation which is in ROGUH DRAFT status, and also the Creating Options Pages - which is also in "transition", ...
0
votes
1answer
374 views
jQuery Tabs in Shortcode API
Pastebin of the html prototype and my attempt at the wp function -> http://pastebin.com/91zBv8sk
I want a simple notation so its easy for new users to use. So something like this:
[tabs]
[tab ...
3
votes
3answers
2k views
What is the best way to get directory path for wp-config.php?
I am developer of the plugin mapsmarker.com which also offers several APIs which can be accessed directly (eg www.mapsmarker.com/wp-content/plugins/leaflet-maps-marker/leaflet-geojson.php?marker=1)
...
0
votes
1answer
3k views
Why may one avoid Jetpack plugin?
I've been looking around the web at reviews and analyses of Jetpack, and I haven't been able to find any coherent discussion surrounding why not to use the Jetpack other than avoiding Wordpress.com's ...
-3
votes
1answer
263 views
How to import data from another website using an API link?
I have an API link ($content bellow), and I need to display the content fetched from this link in the dashboard. I don't have slightest idea how to do this.
if( !class_exists( ...
0
votes
1answer
91 views
wp_signon returns user but the user is not logged in because wp installed on subdomain. How to make it work?
I am using the WordPress API to get the user login. My code:
<?php
define('WP_USE_THEMES', false);
require('wp-blog-header.php');
$creds = array();
$creds['user_login'] = 'user';
...
2
votes
1answer
273 views
Authentication/API Questions
We are trying to use S2Member to manage our WP site and memberships for a Flash program that we are launching. We'd like to use S2Member to authenticate the user when they login and remain logged in.
...
2
votes
1answer
516 views
WordPress JSON output
Update: I've changed the code as following
$cats = get_categories();
$output = array('categories' => array());
function collect_posts(){
$args = array( 'numberposts=' => 9999, 'category' ...
1
vote
1answer
107 views
How to add an alternative style sheet as a theme option?
I'm trying to create a few extra theme options in the "customise" section of the wp admin menu. I would like to offer an option to load an alternative style sheet.
Question: How can I adapt the ...
0
votes
1answer
37 views
Lead form that submits to 2 external APIs
I need to add 2 registration forms to my wp website, each form should submit the information in it to 2 different APIs.
I don't know even where to begin. Is there a plugin that can help me handle the ...
-1
votes
1answer
84 views
More Fields WP Plugin
one of my clients use More Fields WP plugin and we want to generate a feed of the data entered using that plugin.
http://wordpress.org/support/plugin/more-fields
Have installed JSON WP plugin to ...
1
vote
0answers
51 views
permalinks with get variables
I'm trying to create my own permalinks with wordpress rewrite API. I have been registering my get variables as it follows
add_filter( 'query_vars','driver_vars' );
function driver_vars( $vars ) {
...
8
votes
2answers
1k views
How to pass variable to add_settings_section() callback?
I am attempting to automate, as much as possible, the Settings API function calls for each setting in a Plugin. Looping through the options array, and outputting add_settings_section() and ...
0
votes
3answers
313 views
Get timestamp of latest post in C#
Is there a way to get the timestamp of the latest post in C#/.net? I am writing a control in ASP.NET for a intranet, which will alert users when a new post is posted in a wordpress blog.
1
vote
2answers
527 views
Creating external apps Wordpress / How they work
I was wondering how does external app works for wordpress.com or wordpress.org.
Directly connecting to the wordpress database seems a bad idea to me.
Questions
How can I create an app or get / ...
1
vote
1answer
184 views
API integration with WordPress
I'm trying to integrate a 3rd party API with WordPress. I fear this is above my head. I was this code but I'm not exactly sure how to make is work in WordPress. Is it possible?
$ch = curl_init();
...
