WordPress Subpages Fancybox Trouble

So, if I understand your question correctly, your problem is that your iframes are showing the theme (nav menu, sidebar, etc.) and you don’t want them to. If that’s the case, I’d recommend creating a new Page Template that is styled after your bio iframe (no menus, no sidebar). There’s more info on creating custom … Read more

How to make a Post Tag primary?

Looks like someone on on of my listserves provided the answer: He said to, “use innerHTML() within your ajax callback function. It looks like you’re using jquery, so use the .load() function.” I checked on the jquery site and it said .innerHTML is .html in jQuery, so we’ll go with that then and see if … Read more

Issues when moving from server to MAMP

The :8888 is the port your local Apache server is listening on and isn’t actually part of the url. To use your own custom domain name locally open up your host file sudo nano /etc/hosts and add this line to the bottom 127.0.0.1 custom-domain.dev Then add your domain to wp-config.php: define( ‘WP_HOME’, ‘http://custom-domain.dev’ ); define( … Read more

Post count by Parent Category

Here we’ll use the function – get_categories() to grab all the available categories and store it as array, Then we’ll loop through the array to display the list. Within the foreach loop we did a conditional check that is to determine if category is parent if so print it. <?php $categories = get_categories(); echo ‘We … Read more

How to add post of custom type to a category with custom type capabilities

I have found the cause of this problem. The reason is due to the capabilities argument in the category taxonomy. i.e. array( ‘manage_terms’ => ‘manage_categories’, ‘edit_terms’ => ‘manage_categories’, ‘delete_terms’ => ‘manage_categories’, ‘assign_terms’ => ‘edit_posts’, ); So one work around (though not a very good one – and certainly not for use in plugins!) is to … Read more

meta_query and strange orderby behaviour

You could try $args = array( ‘post_type’=> ‘events’, ‘meta_query’ => array( array( ‘key’ => ‘_startdate’, ‘value’ => $today, ‘compare’ => ‘>=’, ‘type’ => ‘DATE’, ), array( ‘key’ => ‘_enddate’, ‘value’ => $today, ‘compare’ => ‘>=’, ‘type’ => ‘DATE’, ), ‘relation’ => ‘OR’, ), ); function jumpin_thru_hoops( $a ) { global $wpdb; $a = $wpdb->postmeta.’.meta_value+0 ASC’; … Read more