Site title not showing. Please help me

Use this code in Header.php file. <title><?php wp_title(‘ – ‘, true, ‘right’); ?></title> But as per page view source code.you have forgot to close tag above tag in header. so please close tag. see this screenshot Should code like this: <script> window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag(‘js’, new Date()); </script> <title><?php wp_title(‘ – … Read more

Create/Set Category as Title of Post

Can’t give you fish, but I can try you to teach how to fish with a couple of pointers; hook into publish_post (good example code there) and / or post_updated in the function that is called that way, use wp_create_category (which will only create if the cat. name doesn’t exist yet) and with the cat … Read more

Limit title length

It’s because you’re not using the filter correctly. The the_title filter passes the title to be filtered as the $title argument, but you’re overwriting it with this code: global $post; $id = ($post->ID); $title = get_post( $id )->post_title; That code’s completely unnecessary because the title is already available in your function: function max_title_length( $title ) … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)