Hot answers tagged

11

The featured image attachment id is stored in the post_meta table, with the meta_key _thumbnail_id. Use that post id to find the post meta with meta_key _wp_attachment_metadata. The value of that is a serialized array with keys thumb, file, width, height, sizes (an array), and image_meta (an array). The file value is relative to the uploads directory for ...


5

Here is a list of points that will help you in order to make an iOS app for your WordPress blog: You can either parse XML in the RSS feed, JSON by installing a JSON plugin in your WordPress or you can also parse HTML directly. 1) I would suggest using NSXMLParser and parse the RSS feed instead of using JSON. Reason being, if something goes wrong to the ...


5

The post thumbnail is a stored in the {$wpdb->prefix}_postmeta table with the key _thumbnail_id. Something like this: SELECT * from {$wpdb->prefix}_posts WHERE ID in ( SELECT meta_value FROM {$wpdb->prefix}_postmeta WHERE meta_key = '_thumbnail_id' AND post_id = ':ID' ); Replace :ID with the post id. That will return the Post ...


4

The post's featured image is a regular old attachment to the post. So, as with any other image attachment, you'll need to query the wp_posts table for a post type of attachment. The trick is to first get the attachment ID that you need to grab. This is contained in the given post's meta information, specifically the _thumbnail_id meta. So, you'll need a ...


4

WordPress is a set of PHP scripts running on a web server. So your application needs a web server, a data base and PHP. I don’t think this is possible on all of those platforms.


3

Check out JSON API plugin. It will allow you to have a RESTful API for most of the content on your website. If you don't want to have an API in WordPress (i.e. you want it on a different domain/subdomain, have separate codebase etc.), you could do the same through pure PHP, or using a microframework, such as Slim. In this approach you would load WordPress ...


2

To build it you can use hookpress or the json api. You would need to built a stand alone app and then query wordpress for the info you want, using the above two plugins makes that a lot easier, in effect you turning wordpress into an API. An update to this post since I comes up via the googles: Java for WordPress xmlrpc. http://code.google.com/p/wordpress-...


2

It's been 4 years since the question was posted, so the accepted answer is not that relevant anymore. WooCommerce launched the WooCommerce REST API that comes with all WordPress installations by default. So there's no need for any extra endpoints or additional plugins. Just use the REST API directly from your mobile app.


1

I managed to hack the lost data by SSH-ing into my android and coping the wordpress app database to my pc and then opening it there wit a sqLite browser this shouldn't be so hard


1

It's possible to write your own endpoing using add_rewrite_rule(). In this case, we'll register the endpoint http://example.com/api/user_data/{id}. Then check to make sure the ID is numeric. If it is, lookup the user by id and output the JSON response. URL http://example.com/api/user_data/1 JSON { "success": true, "data": { ...


1

Android Push Notification requires you to have GCM Keys and Project ID which needs to be registered on Google Developer console. I am assuming you are able to get your users registration IDs and stored in a table. To send Android Push Notification create a function somewhere in your functions file function AndroidPushNotification($registration_ids, $...


1

New users CAN be allowed to register remotely without setting "anyone can register" in "general/settings". The client is android and in addition to the android java client code using the 'org.xmlrpc library', the following was added to 'functions.php' in the child theme: function xml_add_method( $methods ) { $methods['xxx.wp_create_user'] = '...


1

If you just add a player to the blog maybe in custom temple(page) you can just use an ajax comments plugin and have the DJ have the comments stream open think about using http://disqus.com/


1

The most iPad-unfriendly thing you can do is try to cater for the device with a dedicated theme, especially if that theme is the OnSwipe one that WordPress favour. Please do not do this unless you actively want your iPad-using readers to hate you. If your blog is WP-hosted, this will be enabled by default. Please go to your dashboard and turn it off.


1

At this time, there's no way other than logging in to the backend of your site from your mobile device. This currently doesn't work on the iOS WordPress app either.


1

Use the XMLRPC API. *All these tips are for a self-hosted blog. Not sure if they are relevant to a wordpress.com blog Don't forget to include /wp-admin after your sites name in the URL box. This may seem like a no brainer but I was not putting this in at first. :) eg. http://www.yoursitesname.com/wp-admin XML-RPC functionality is turned off by default in ...


Only top voted, non community-wiki answers of a minimum length are eligible