Custom Post within a custom post

Okay the answer is simple (was able to fix this myself). What you need to do is put another directory (let’s call it C) where the rewriting rules will be made. So for post type B, it would be: $args = array( // … other args removed for clarity ‘rewrite’ => array( ‘slug’ => ‘A/C/B’ … Read more

How to check whether a post exceeds 300 words

basically you need to change the default EXCERPT length of your posts. there are a couple of ways to solve this issue: if you aren’t familiar with PHP Install this plugin at : http://wordpress.org/plugins/advanced-excerpt/ This will allow you to change the the excerpt length from the admin panel. if you are familiar with basic PHP … Read more

get_category_parents displays an empty category

How do I remove the last, empty category without PHP functions like explode or substr? You don’t. Look at the source: http://core.trac.wordpress.org/browser/tags/3.6.1/wp-includes/category-template.php#L42 The output you see is intended behavior and there is no filter. My guess is that you are trying to use the function for something it is not meant for. You could take … Read more