GPL 2 Theme using a framework for commercial Theme?

Short answer: You may change everything as long as you keep the same license. No credit is actually required. But it is polite. I would add it in the stylesheet under the notes section with a link back to the original. Provide the original author and link to the source. Something like “Based on the … Read more

Customizing page content layout

Disclaimer: I have no affiliation with this plugin nor its author, it’s just a plugin I’ve found to be indispensable in my WordPress tool kit. So this is not an advertisement for a plugin. The plugin you want is: Advanced Custom Fields. It’s a free plugin that’ll make your life a lot easier for varied … 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