php.ini -Theme-specific settings

I’m wanted to comment rather than answer as I don’t have a solution for you, but I think this is too long 🙂 Hosts vary so widely on how and where they set memory allocation, and whether they allow hosted scripts to set it, that I don’t think there is a bullet-proof solution for you. … Read more

Running WordPress from MySQL Cluster with HAPRoxy

SELinux was contributing to the problem. The main issue was that an HTML page was attempting to talk to another port on the localhost. I would not have seen the problem if the HAProxy was running on a separate host. The log was revealed in /var/log/messages, where I should have checked but did not considering … Read more

Problem with a query in custom posts

Like the commentor say, couldn’t you use WP_Query for this? $results = new WP_Query(array( ‘post_type’ => ‘products’, ‘meta_query’ => array( ‘key’ => ‘availability’, ‘value’ => $MyDate_a, ‘compare’ => ‘=’ ), ‘order’ => ‘DESC’, ‘orderby’ => ‘meta_value’ ));

Convert many posts from having a specific meta_key to use a post_format

After much reading, i realized that it would be more easily done using the WordPress API, so i baked out this little script. Simply add it to your theme’s functions.php then run it once. When done, remove it. function convertGalleries($test){ $galleries = get_posts(array( ‘meta_key’ => ‘custom_post_template’, ‘post_status’ => array( ‘any’ ),’posts_per_page’=>-1 )); if($test){ return count($galleries); … Read more