Clone wordpress blog on localbox manually

you can use this tool http://interconnectit.com/products/search-and-replace-for-wordpress-databases/ to replaces the urls. The advantage over SQL replace is that the tool know how to handle serialized info in the DB. Being easy to sync is problematic requirement with the way you are trying to do things. If you need that, then you should simply change your localhosts … Read more

How to maintain changes to comment-template.php

There’s a filter for that: get_comments_link. Refer to source: return apply_filters( ‘get_comments_link’, $comments_link, $post_id ); In an appropriate place (such as a site functionality Plugin), just add a filter via callback: function wpse123906_filter_comments_link( $comments_link, $post_id ) { // Return your custom link return get_permalink( $post_id ) . ‘#disqus_thread’; } add_filter( ‘get_comments_link’, ‘wpse123906_filter_comments_link’, 10, 2 );

Non-Recursive get_term_children()

Presumably you want to output term data, so you can use get_terms with the child_of argument, then iterate over returned terms and check that the parent of each term is your main term id: $parent_id = 42; $children = get_terms( ‘product_category’, array( ‘child_of’ => $parent_id ) ); foreach( $children as $child ) { if( $parent_id … Read more

Category Archive

It’s a little bit hard to choose “best way”, when you give so few details describing your case. There are two most common ways I can think of. Use category description. You can then print it out in category/archive template using category_description. Make custom page template which will display posts from given category (or whatever … Read more