IOS home screen icons: where put and what size?

I figured out that the images needed to be in the directory where the “core” wp folders are, ie. the public_html, or in whatever sub-directory that contains the wp-admin, wp-includes, wp-content, etc. I had been placing them in the theme root and nothing was happening. Moved them to the public_html and they started showing up! … Read more

How can I improve the performance of this query_posts loop?

Not sure how dramatic this’ll be, but it should improve nontheless: <?php /** * You can try forcibly splitting the query (grabbing IDs *then* all fields) * Works well for large post results. (available WP 3.4+) */ add_filter( ‘split_the_query’, ‘__return_true’ ); $posts = get_posts( array( ‘post_type’ => ‘listings’, ‘posts_per_page’ => -1, /* Disable term caching … Read more

How to query WordPress from another application?

different solutions use the rss or atom-feed (each is xml) and parse it; has always fast and sure the post and data inside; easy to use with different langugage, all frameworks has implement for parse xml. use the xmlrpc interface; but is optional in WP and you must read the documentation for the API scan … Read more

Apple push notification doesn’t work

OMG, finally, as the code runs from the plugin, the current working directory is set to wp-admin whereas when i run it manually it set for /wp-content/plugins… So, when the push function is called, just add the following line of code: chdir(ABSPATH . ‘wp-content/plugins/*your plugins folder name*/’);

Multisites, upload issues, and iOS!

After 6 days of pure sadness, this ended up being the fix: http://www.technowut.com/2012/05/14/how-to-stream-videos-to-ios-devices-with-multisite-wordpress/ Here’s how to get it working on CentOS 6 with the packaged Apache httpd: Nils Maier wrote the module for Apache httpd. Download the source and take some time to review the docs there. Compile and install the module on the command … Read more