How to solve the site tag being displayed twice?

You are getting the two <title> tags most likely because your theme has the title-tag support which automatically adds the title tags in the document head. Excerpt from the above linked page on Make WordPress Core: Adding titles to themes Starting with 4.1 and Twenty Fifteen, the recommended way for themes to display titles is … Read more

Shortcode To Display Post Custom Field Value in Post Title, Post Content

the_title filter takes two parameters, one of them is the ID of the post for which it was called. Something like that should work. add_filter( ‘the_title’, ‘se385007_title_filter’, 20, 2 ); function se385007_title_filter( $title, $post_id ) { $new_title = str_replace( “[geo_name]”, “[geo_name post_id=$post_id]”, $title ); return do_shortcode( $new_title ); )

Change description of my Jetpack facebook shared links [closed]

This part comes from the function comment_form() which is called by your theme, probably in comments.php: ‘comment_notes_after’ => ‘<p class=”form-allowed-tags”>’ . sprintf( __( ‘You may use these <abbr title=”HyperText Markup Language”>HTML</abbr> tags and attributes: %s’ ), ‘ <code>’ . allowed_tags() . ‘</code>’ ) . ‘</p>’, You can filter it out with a simple plugin: <?php … Read more

Setting page title and keywords from PHP code

You can use the wp_title filter to modify the HTML document title, and you can use the wp_head action to hook in a custom HTML meta link. e.g.: <?php function wpse46249_filter_wp_title( $title ) { // $title contains the default document title // output by WordPress. Modify it here however // you want. $some_custom_title_content=”CUSTOM TITLE CONTENT … Read more

Images inside post title

A search and replace solution does sound viable. I wouldn’t do it via JavaScript, though. add_filter(‘the_title’, ‘wpse60174_logo_in_title’, 10, 2); function wpse60174_logo_in_title($title, $post_id) { // Add a <span> around the company name return preg_replace(‘~\bCompany\s+Name\b~i’, ‘<span class=”company”>$0</span>’, $title); } With the extra span in place it is just a matter of applying some custom styles to it. … Read more

Title tags show twice

Go to the header.php file in your template folder and make sure that between the title tags, there’s only this code: <?php wp_title(”);?> That should do the trick. This error is a combination of your template files with standard settings of the Yoast SEO plugin.

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