An application programming interface (API) specifies how some software components should interact with each other. In addition to accessing databases or computer hardware, such as hard disk drives or video cards, an API can be used to ease the work of programming graphical user interface components. ...

learn more… | top users | synonyms

0
votes
1answer
246 views

Trying to integrate wordpress query on other website - getting redirection to wp-install

i'm trying to replace news system on my website with posts from wordpress site. I have main site in (example) /var/www/site and working Wordpress blog on /var/www/site/blog Tried to do that: ...
12
votes
2answers
564 views

New WP_Customize API - how does it work under the hood?

I noticed that if you make changes trough the new "customize" feature, when you navigate on a different page within the iframe preview document, your changes still apply, even if they are unsaved. It ...
0
votes
1answer
287 views

term_exists returns NULL

According to the codex ( http://codex.wordpress.org/Function_Reference/term_exists ), term_exists returns some mixed results but not NULL. In my case, I'm getting NULL, what am I doing wrong? In ...
1
vote
1answer
284 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 ...
0
votes
2answers
604 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' => ...
1
vote
1answer
132 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 ...
0
votes
1answer
141 views

$_POST['message'] gives a 404 [duplicate]

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 ...
5
votes
2answers
417 views

WordPress.org API - Get plugin authors favorite plugins

There have been some recent additions to the WordPress.org plugin repository. Most notably the changes to the plugin page and the author profile page which now shows an authors favorite plugins. I ...
4
votes
2answers
2k views

What WordPress API function lists active/inactive plugins?

After seeing thousands of useful API functions in the WordPress core, I'm surprised to discover today that there ain't a function that would list the active plug-ins. I don't know you but I'm quite ...
2
votes
3answers
851 views

get post type plural

Currently I'm trying to get the post type labels plural. In detail: $GLOBALS['wp_post_types'][ get_current_screen()->post_type ]->labels->name This is how I'm trying to retrieve it - in ...
1
vote
1answer
116 views

Get the timout value of a saved transient?

Does anyone know if there is a Wordpress function to get the timeout value of a saved transient? I am using a transient with a 5 minute timeout to cache data from a web API call locally. Between ...
1
vote
1answer
1k views

POST to a REST API from a wordpress form

I dont want to use a REST API to publish to wordpress. I want to create a form on a wordpress page which will send a POST to an external REST API. Users will put in their information, and perhaps ...
5
votes
4answers
2k views

Does Wordpress have a “Form API”

I do most of my development in Drupal, however I am working on a Wordpress site and I need to make a form. Which got me thinking, is there a Form API for wordpress like there is Drupal? Is there a way ...
0
votes
2answers
265 views

What to hook into to check a value before a post is published?

My website is set up with pages as categories, meaning that if a user publishes without choosing a category, no one can see the post unless they know the specific address. What do I need to hook ...
16
votes
3answers
9k 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
1answer
67 views

How do I query posts and have their related taxonomies returned in the results?

I have created a custom post type that contains television channel data. Each channel has its own post. I have also created a custom taxonomy of channel groups. What I want to do is query all the data ...
0
votes
1answer
38 views

Including content from legacy app: via plugin or custom content?

I am looking to integrate content that exist in a legacy system to a wordpress blog. The content can be accessed from the legacy system via SOAP. I have some PHP experience and some (limited) ...
0
votes
4answers
559 views

How to query WordPress from another application?

We're building an iOS app for BarbadosPropertyList.com. The iOS app needs to query the website and download recent listings data, including titles, datestamps, thumbnails and custom fields. We would ...
1
vote
2answers
1k views

wp_localize_script escaping my url - fix or alternative

Here is my wp_enqueue_script and wp_localize_script - which i am using to run an Ajax call. wp_enqueue_script( 'function', plugin_dir_url( __FILE__ ) . 'function.js', array( 'jquery', 'json2' ) ); ...
0
votes
1answer
3k views

Why may one avoid Jetpack plugin? [closed]

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
391 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. ...
0
votes
1answer
755 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 ...
1
vote
1answer
588 views

How can I add an options page for my class based plugin?

I'm trying to use the new Settings API with a class based plugin to add a settings page. This is the code I have so far: class simple_sample_plugin{ function simple_sample_plugin() { ...
2
votes
2answers
2k 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", ...
1
vote
1answer
258 views

Sending WP posts to external API

What's the best method for sending all new Wordpress Posts to an external script on another server? It needs to include the full post information including the post content, so a simple ping is not ...
4
votes
3answers
4k 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) ...
1
vote
1answer
49 views

Include default functions and methods

I'm starting a new service for a customer consisting in adding a input API in their WP website. I started by creating a blank page on the root but then I realized I couldn't access all methods and ...
2
votes
1answer
363 views

What is the best way to move a plugin´s subdirectory+files to wp-content/uploads-directory?

I am developer of the plugin Leaflet Maps Marker (http://www.mapsmarker.com - "Pin, organize & show your favorite places through OpenStreetMap, OGD Vienna or any custom WMTS-map") and have one ...
2
votes
0answers
550 views

Wordpress JSON API Extend to Create Users [closed]

I have the JSON API Plugin installed on my wordpress blog and it works like a charm. However there is one functionality that i really need. A method called create_user which should take parameters ...
1
vote
1answer
452 views

get_option() fails to return binary result

For some reason, get_option() started to fail when returning binary results when I moved my website from localhost to the web server. I migrated my WordPress using an upload of the files on the FTP ...
1
vote
0answers
121 views

How to avoid directory name collisions with root Wordpress install [closed]

I need to know how I can keep the end-user of a wordpress site installed in the root directory from creating slugs that will interfere with sub-directories that are already present. I've Googled ...
0
votes
1answer
54 views

Widget internal hooks and functions

I am working on my 1st plugin, of some ideas to re-do the interface to how widget's are manage d and organized. Anyhow. I am struggling to get this information, either that or understand it. Create ...
0
votes
1answer
1k views

Consuming an external API to publish/post to wordpress

Is there a solution or a way to consume an external web service API (could be JSON or SOAP) to be able populate/update a wordpress blog ? For example using wikipedia api to pull content that ...
1
vote
1answer
896 views

Integrate ZOHO Recruit API?

I'm working with a client using ZOHO Recruit to manage his staffing agency. The form for candidates to submit their information is given by ZOHO as a simple embed code. However, for employers to ...
5
votes
2answers
1k views

How to use WP_Error $data argument?

The Call $error = new WP_Error( $code, $message, $data ); The Output Say I added three messages (msg A, msg B, msg C) to the code my_code and with the last message I added "Data" as $data, which ...
1
vote
1answer
766 views

Use Gravity Forms and a Shopping Cart for output to Freshbooks for an Estimate

I've been asked to develop a website pretty much like (but not the same as): http://www.yoursingapore.com/ basically we need to allow people to add Wordpress posts (custom post types) into a sort of ...
2
votes
3answers
1k views

How do I create a widget that only allows a single instance?

How do I create a widget that only allows a single instance of a widget to be added through the Wordpress interface? The default behaviour of widgets allows multiple instances to be added. I am ...
0
votes
1answer
574 views

Add a new page to wordpress programmatically

Is there a function in the wordpress api that lets me programatically add pages ? something on the lines of : add_page($title,$content) Is there such a function ?
0
votes
3answers
439 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
1answer
773 views

Admin table list API?

wp-admin table lists - like post list Is there a API or something to build table lists in wp-admin? With table lists I mean like the list of posts for example. It has columns, sorting, paging and so ...
0
votes
2answers
343 views

Plugin is a widget, but I want to call it in the head, can I?

Full disclosure, PHP and Wordpress are not my specialties. I've got this plugin here -> http://wordpress.org/extend/plugins/ustream-status/ that adds a Widget that will show if my Ustream.tv channel ...
-1
votes
1answer
275 views

Integrating custom API for post content into Admin interface & Public Website [closed]

EDITED question to be more specific and added bounty in hopes someone has a solid coded solution: So, here is an interesting task I have been trying to find a solution for. I have added a bounty ...
2
votes
2answers
348 views

What is the official way to consume the Wordpress API? (api.wordpress.org)

Was wondering if anyone knows here if the API at api.wordpress.org is free to use without keys. I haven't really found any information about key registration. I'd like to use it to make a few ...
2
votes
3answers
1k 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 ...
0
votes
2answers
248 views

Get Wordpress login functions without printing anything

I want to serve a dynamically-generated PDF with a "File Transfer" header header('Content-Description: File Transfer'); However, before I generate the document I need to verify the user's login ...
0
votes
2answers
1k views

Passing variables to new page

I'm trying to pass the variables to a new page, I made a function in my theme to get the results. Now when I use yelplist(); on the front page of my theme it gets the results and when i click on the ...
0
votes
2answers
296 views

Get paged category link programmatically

I want to get the link to a category (specified by id) but with a paged value (e.g. page 3 of category id 4). I was looking into get_category_link()Codex, but it only returns the link to the first ...
7
votes
2answers
2k views

How to store username and password to API in wordpress option DB?

I'm currently developing a plugin and the chances are that I will more than likely release it on the public plugin repository so others can use it. The plugin will be using an API and to use this API ...
2
votes
1answer
714 views

Custom routing for plugins

I am making a plugin that needs a page that can be accessed from the outside, pretty much like an API, and have the url like so, http://xxxxx/custom_method?parameter=xxxxx&something=xxxx is ...
10
votes
2answers
236 views

Which of my blog and personal data is being transfered when Wordpress automatically checks for updates?

I'm generally concerned about privacy and I've heard that with each contact to the Wordpress API for update checks and similar a lot of my blogs data is being transfered. To get a better impression, ...