and
and <meta property="og:title"
and <meta property="og:title"
this question is too generic to be answered. You need to debug and understand where those 2 meta are created. As a first step I would disaable all the plugin and enable one by one to see if it’s coming from a plugin.
Well You can also try by adding action inside. function after_submission( $entry, $form ) { $name = $entry[2]; $item = $entry[5]; insert_og_in_head( $name, $item ); add_action( “wp_head”, “insert_og_in_head” ); } add_action( “gform_after_submission”, “after_submission”, 10, 2 ); function insert_og_in_head( $name = NULL, $item = NULL) { global $post; if ( !is_page( 6 ) ) //if it … Read more
You can use addslashes() and stripslashes() to prepare any data for database entry. These are native PHP functions, not wordpress functions, so they do not necessarily need to be hooked anywhere specific in the wordpress load to work.
Okay, here is a working example of what you (might) want to do. Put the following in your functions.php: add_action(‘wp_head’, ‘my_jquery_code’, 999999999); function my_jquery_code() { $jquery_code = <<<JQUERY <script> // jQuery code goes here… </script> JQUERY; echo $jquery_code.PHP_EOL; } // function my_jquery_code
why php tag is not working if i store and show it in wp_head?
Try this. It dequeues the style and script set in ‘init’. add_action( ‘template_redirect’, ‘remove_wizzylike’ ); function remove_wizzylike() { if ( ! is_single() ) add_action( ‘wp_head’, ‘remove_wizy’, 5 ); } function remove_wizy() { remove_action( ‘wp_head’, ‘wizylike_head’ ); // Enqueued in wizylike_init() wp_dequeue_style( ‘wizylike’ ); wp_dequeue_script( ‘wizylike’ ); }
Yes, the global post object is already set when wp_head is called. An example for a function body from this post: // restricted to singular pages only if ( ! is_singular() ) return; // there has to be a featured image set $thumb_id = get_post_thumbnail_id(); if ( empty ( $thumb_id ) ) return; // FALSE … Read more
You need to Edit your theme’s Header.php tag. You will see necessary codes there. You can modify to fit your needs. However, If you need more specific help, please paste your themes header.php here. Thanks
How can I edit a meta description