You can use the wpseo_title
filter to read the tag for your site title after WPSEO creates it, and if it’s not there, add it on.
add_filter( 'wpseo_title', 'wpse137502_wpseo_title' );
function wpse137502_wpseo_title( $title ) {
$site_title = get_bloginfo( 'name' );
if ( ! strpos( $title, $site_title ) ) {
$title .= " | " . $site_title;
}
return $title;
}
Related Posts:
- Yoast SEO plugin “could detect no serious SEO problems” on dashboard
- WordPress Sitemap including pages that aren’t there
- Help in using SEO Plugins: SEO Ultimate And Yoast SEO Plugin
- Yoast SEO settings unavailable in an archive page from wordpress plugin
- Yoast Force Rewrite Crashed Site [closed]
- Site shows URL instead of “meta title” after deleted few plugins (not any SEO plugin was deleted)
- custom wordpress theme and yoast seo injecting text in body
- Does anyone know why my SEO and title become one?
- My wordpress local urls is still displayed even moved to live
- SEO Site Title appearing in google search despite not being added
- Yoast Seo Plugin meta title not showoing [closed]
- Possible to change meta data single quotes to dobule quotes in yoast wordpress seo? [closed]
- how to make yoast seo read text from custom fields in custom post type
- Can YOAST SEO fields be removed from custom post type [duplicate]
- How to roll back a WordPress plugin update?
- Changing title of a page dynamically from within a plugin
- How can I modify the Capability needed to access a plugin’s options?
- Allowing Yoast SEO plugin to track me
- Should a SEO plugin be necessary? [closed]
- How are plugins in the WordPress plugin directory ranked?
- Change page title from plugin
- What is the proper filter to add html to a post / page title?
- A plugin for having rel=”nofollow” in posts?
- How to add terms to a post depending on its title?
- How to add nofollow on all external links without plugin?
- Exclude custom post_type in sitemap generation?
- SEO meta description and title tag Yoast SEO
- Yoast SEO Calling content filters 2 additional times
- Yoast SEO blocking/re-initialising longer running process
- Can’t access my WP dashboard: fatal error? [closed]
- WordPress web page struggling with performance
- add_filter the_content in functions.php not working
- Capitalize All Titles and Headlines in Chicago Style
- Regenerate images with automatic ALT and TITLE attributes
- How to set a custom title per language?
- How can I list recent posts excerpts?
- Add custom taxonomy to title tag [closed]
- google conversion code
- One of my plugins broke when I tried to update it, how do I safely uninstall it?
- How to append to title via functions.php for auto-posting plugin [duplicate]
- Error “preg_match_all” with WordPress SEO by Yoast plugin [closed]
- qTranslate conflicts with SEO-plugins [closed]
- WordPress display breadcrumbs using Yoast plugin [closed]
- SEO Friendly URL on dynamic product page produced via shortcode
- How to Change The Title in WordPress For SEO
- 306 MB of wp_options occupied by WordPress SEO Plugin, is that normal? [closed]
- Replace default og:image tag YOAST
- Which filter affects the ‘entry-title’ post class
- how to add text to posts from tags
- Check if SEO plugin installed
- Every new post/draft has a custom field variable “yst_is_cornerstone” showing
- How to remove/hide Yoast’s “SEO” tab in admin panel?
- ASCII titles with Yoast SEO plugin
- Remove Yoast jQuery from front end
- Insert Message before content of after title
- How to customize a title by passing query string?
- Customizing Titles on the Fly with Code
- Is changing post from category in a large blog a good practice?
- Why is Google Search Console getting X-Robots-Tag noindex?
- How to remove index meta tag
- How to integrate together a website currently hosted WordPress.com and a custom web application currently hosted on Azure?
- How-to: This block can only be used once
- wp-admin send 404 error
- How to track analytics with a WordPress site under the same domain as my main site?
- YOAST Seo xmlsitemap menu item not showing in the dashboard [closed]
- If post exists in the database – each time goes on `else`
- Set domain level rel canonical with Yoast SEO [closed]
- Override methods in Yoast SEO breadcrumb class
- Yoast SEO Plug In and my Theme duplicating code. Need some feedback on what to do? [closed]
- Plugin for TinyMCE to create reference to other posts
- Preserve Search engine index while shifting to new Domain
- How do I fill the Home Description?
- WordPress Sitemap for MSSQL
- WordPress built-in compression of images? How well does it compare to Photoshop or Shortpixel?
- Remove Keywords From Webpage But Still Use for SEO
- How page with random php file with query params generated
- Writing SEO for Homepage when homepage is set to display latest posts
- Facebook sharing image error with facebook debug
- Replace Yoast og:image in single custom post type
- How to make the first letter of a post title uppercase, in a plugin?
- How to markup wordpress site using Schema.org?
- Problem with Duplicate Meta / tag description in Webmaster Tool [duplicate]
- Why I can not modify the appereance of my title web site in google? [closed]
- Does Google detect files in the WordPress plugin directory
- Strange Search Query Appearing on Google Index – “/?q=Save+Us+From+Berlusconi”
- Mystery URL http://#/ Listed in XML Sitemap Created by WordPress SEO by Yoast Plugin
- Automatically set posts to NoIndex depending on category?
- Do shortcodes affect page indexing by search engines?
- How to clean up unnecessary file inside wp-content/plugins/wordpress-seo?
- getting image alt text via ACF plugin in WordPress [closed]
- Open graph issue on my theme
- TypeErrors with Yoast, jQuery in conflict?
- How should I force WordPress to give proper name for the uploading images?
- Seo Problems in My meta Discription [closed]
- De-index plugin files
- Yoast Seo noindex added to pages outside wordpress
- Fatal error in wordpress
- YOAST slug does not take the custom permalink I have made
- Page with redirect
- Remove a specific sitemap from Sitemap_index.xml