Get Current Child Page with get_children

There are many method to display current child page in WordPress, this function is usefull to do the same command. Just Paste this code in functions.php function sb_child_page_menu( $current_parent )…

Featured Image as Previous Next Post Navigation in WordPress

Just add this code to single.php, replace or comment the default function like the_post_navigation, get_previous_post, get_next_post, etc. $prev_post = get_previous_post(); $prev_thumbnail = get_the_post_thumbnail( $prev_post->ID, 'large'); $next_post = get_next_post(); $next_thumbnail =…

Hide Warnings and Errors on WordPress Site

Sometimes, a plugin or theme throwing error or warning messages. To hide it, simply just put this on top of the wp-config.php file: ini_set('display_errors','off'); All set.

How to set posts redirect to a new domain

I'm moving out a blog to a new domain, and redirect all posts specifically to a new domain. http://olddomain.com/category/postname should go to http://newdomain.com/category/postname Apache Server On Apache that allows .htaccess,…