title tag function

function title_tag () { // 0. uppercase string $str = strtoupper ( $_SERVER[‘REQUEST_URI’] ); // 1. remove trailing and init slash $str = trim ( $str , “https://wordpress.stackexchange.com/” ); // 2. add search and replace chars; // two array, with same element size, // 1. element of search array will be replaced // with the … Read more

Truncate Widget Title

don’t use echo in filter functions – use return: function widget_new_title($title) { return word_limiter($title,20); } add_filter(‘widget_title’,’widget_new_title’);

Insert content into head tag with function

The content is modified with filters, not hooks. To modify the <title>, use wp_title filter Example: add_filter(‘wp_title’, ‘set_page_title’); function set_page_title($orig_title) { return ‘Modified ‘ . $orig_title; }

strtolower

Wrapping everything in strtolower should work: <title><?php global $page, $paged; echo strtolower(wp_title( ‘|’, false, ‘right’ )); echo strtolower(get_bloginfo( ‘name’ )); $site_description = get_bloginfo( ‘description’, ‘display’ ); if ( $site_description && ( is_home() || is_front_page() ) ) echo strtolower(” | $site_description”); if ( $paged >= 2 || $page >= 2 ) echo strtolower(‘ | ‘ . … Read more

Catagorized hierarchy menu for PAGES!

Such a widget does not exist. You say you don’t want to use parents, but that is my advise. Then just make a menu for it. If you know how you could make it yourself. A plus of this would be that you get the ‘category name’ of the parent in your permalink. An other … Read more