WordPress Theme Creation [closed]

If modifying Twenty Eleven seems a bit daunting, you should try CSS-less themes like BLANK by Chris Coyier. Otherwise, there are a handful of great starter themes that have all sorts of built-in functionality. The only down side is that these are sometimes just as much, if not more, difficult to learn since they have … Read more

display comment form for specific post id

Use get_comments() and pass the post ID as parameter: $comments = get_comments( array ( ‘post_id’ => 343 ) ); foreach ( $comments as $comment ) { // Just to give you an idea of the available data. // You will probably do something better with it. 🙂 var_export( $comment ); } Related: Bug #20572 ($post_id … Read more

How to display message (with switch_theme hook) after deactivating My theme?

It’s impossible, because after deactivation your theme isn’t even loaded! It’s possible, but hacky. Essentially, we unset the action param, load in the themes admin page & then exit before the redirect-on-success occurs. add_action( ‘switch_theme’, ‘wpse_60972_theme_deactivate_message’ ); function wpse_60972_theme_deactivate_message() { $msg = ‘ <div class=”error”> <p>Your theme has been DEACTIVATED</p> </div>’; add_action( ‘admin_notices’, create_function( ”, … Read more