Where does Yoast SEO plugin sets the site/page title?
There’s a wpseo_title filter you can hook into. Example: add_filter(‘wpseo_title’, ‘add_to_page_titles’); function add_to_page_titles($title) { $title .= $addToTitle; return $title; }
There’s a wpseo_title filter you can hook into. Example: add_filter(‘wpseo_title’, ‘add_to_page_titles’); function add_to_page_titles($title) { $title .= $addToTitle; return $title; }
Quick tip – never, ever edit WP core files. Updates are released several times a year and you’ll lose your changes, among other reasons (such as security). Your theme and the particular template file in question is what determines how WP search is processed. Assuming no search plugin is active, and your theme is calling … Read more
This will automatically update a meta named post_title to the value of the post’s title, no matter where you save the post from: function wpse_275785_save_title_as_meta( $post_id, $post, $update ) { update_post_meta( $post_id, ‘post_title’, $post->post_title ); } add_action( ‘save_post’, ‘wpse_275785_save_title_as_meta’, 99, 3 );
I added this to functions.php while having Yoast SEO activated, and then it worked! add_filter(‘wpseo_title’, ‘filter_product_wpseo_title’); function filter_product_wpseo_title($title) { if( is_singular( ‘my_post_type’) ) { $title = get_field(“title_tag”); } return $title; }
I think the best way to do this would be to use the Contact Form 7 Dynamic Text Extension, and then pre-populate the URL to the Contact Form page with the current post title. More details on how to do that in my answer here. The code to pre-populate the link in a post template … Read more
yes I believe you can stop that by disabling the wptexturize function: <?php remove_filter(‘the_content’, ‘wptexturize’); remove_filter(‘the_title’, ‘wptexturize’); ?> … for example. You can add that to you themes functions.php file. http://codex.wordpress.org/Function_Reference/wptexturize
Using get_page_by_title() along the line of below exemplary code should work: if ( get_page_by_title( $page_title, $output, $post_type ) == NULL ) { $exists = false; } else { $exists = true; } Explanation: $page_title is obviously what you are looking for; $output can be OBJECT, ARRAY_N or ARRAY – Default: OBJECT; $post_type can be specified, … Read more
There is no plugin for that… at least one plugin 🙂 Create custom fileds for your custom text. Install ACF plugin (advanced custom fields) from wordpress.org. Now… create a field group with ACF and then create custom fileds inside that group for your custom text 1 and custom text 2. (Don’t forget to assign field … Read more
I’ve found the cause. All in one SEO Pack plugin 1.6.14.5 is guilty (perhaps it’s not guilty by itself but also due to the multisite setup of my site and other plugins I’ve just installed conflicting it). Disabling the plugin resolve the problem immediately. I’m upgrading it and will use an alternative if it doesn’t … Read more
sql select for post_title and a term name