How do I format my custom html so wpautop won’t try to reformat it?

The function that does what I think you are referring to is wpautop(), probably the most complained about function is all of WordPress-dom. It is a filter on the the_content hook among others. You can remove that with: remove_filter(‘the_content’,’wpautop’); I would suggest that you spend some time looking through the many related questions to see … Read more

Shortcodes: Return different based on atts

All you need is some very simple IF logic. The $author variable is set to be empty here “author” => ” unless an author name is used in your shortcode. So now that you know the default value of $author you can use IF logic to check if it is empty or not. Two logic … Read more

Restricting Post Content Visibility with Custom Code – where to put it?

you can place your function in functions.php and attach an action hook . which will decide when to call your function. If you only want to hide content of the posts you can use this hook add_action(‘the_content’, ‘yourcustomfunction’) or i would suggest this hook which will be called before your actually post query is run … Read more

Custom taxonomy subcategories template page

Yes, this is achievable with the action ‘template_redirect’ I’ve left to write code to find sub-category for yourself! function my_subcat_template() { if ( <is sub category>) { include (TEMPLATEPATH . ‘/category-fun.php’); exit; } } add_action(‘template_redirect’, ‘my_subcat_template’); Update This is a better answer for your problem Put this is functions.php What it does is, it redefines … Read more