opens like sitename.com/URL

sgdghd.com is not a complete URL on its own, and if used in a link like <a href=”https://wordpress.stackexchange.com/questions/358412/sgdghd.com”>, it will be treated as a relative URL. To properly link to a different domain, you need to include http:// or https://. To ensure that a value for href is a valid URL, you should use esc_url() … Read more

Remove metatag from a particular page

That would be: <php if (!is_page(‘slug-of-your-page’)) echo ‘<meta name=”viewport” content=”width=device-width, initial-scale=1″ />’ ?> Beware that if you change the theme files, your changes will be lost if the theme gets updated.

Applying metatag to single page

You can use the WordPress conditional tags to accomplish this. Both is_page() and is_singular() should work, you just need to pass a slug, or in your case, an ID. Then we can use the wp_head hook to conditional add in the meta tag. You can add the following function and hook into your functions.php file. … Read more

Replace -tag in the_excerpt

You should try this: function replace_tag($string){ $search = array(‘<p>’, ‘</p>’); $replace = array(‘<h2>’, ‘</h2>’); echo str_replace($search, $replace, $string); return $string; } add_filter(‘the_excerpt’, ‘replace_tag’); or this: function replace_tag($string){ $replace = array( ‘<p>’ => ‘<h2>’, ‘</p>’ => ‘</h2>’ ); $string = str_replace(array_keys($replace), $replace, $string); return $string; } add_filter(‘the_excerpt’, ‘replace_tag’);

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