Make your WordPress version tag hidden. Put in functions.php file in your theme: remove_action(‘wp_head’, ‘wp_generator’);
Posts By: Renat
Year Shortcode
Usage Use [year] in your posts. Snippet Place the code above in functions.php file function year_shortcode() { $year = date(‘Y’); return $year; } add_shortcode(‘year’, ‘year_shortcode’);
Force sub-categories to use the parent category template
Sometimes you need sub-categories to inherit their parent’s archive/category template. But it’s not supported by default. Here is a little filter that does that for you! function new_subcategory_hierarchy() { $category = get_queried_object(); $temp = $category; do { $parent_id = $temp->category_parent; $temp = get_category( $parent_id ); } while ( $temp->category_parent ); $templates = array(); if (
Hello world!
Welcome to CSS Park, a new place for web developers and designers.