How to install Yoast SEO for TYPO3 using Composer

How to install Yoast SEO for TYPO3 using Composer

Table of contentsHow to install Yoast SEO for TYPO3 using ComposerTroubleshootingCachingComposer 2.0

How to install Yoast SEO for TYPO3 using Composer

Time needed: 5 minutes. Create a developer token Log in to your MyYoast account, go to Account > Profile > Developer Tokens and click Create Token if you don』t have a token yet. Copy the created token. Register your token with composer On the command line, go to the folder that holds your composer.json file and enter the following:composer config -g http-basic.my.yoast.com token [PASTE_YOUR_TOKEN] Add our repository Add our secure repository by adding the following:composer config repositories.my-yoast composer https://my.yoast.com/packages/ Install Yoast SEO Premium for TYPO3 Now you can install the plugin using:composer require yoast-seo-for-typo3/yoast_seo_premium

Troubleshooting

Caching

Sometimes inaccurate data is stuck in the Composer Cache. Please clear it.

Composer 2.0

Composer 2.0 changes the way repositories are prioritized. You can find more information on the Composer website. In this case, you can use the only attribute as:

view sourceprint?1["yoast-seo-for-typo3/yoast_seo_premium"]

So, your composer.js file should have a line like this:

view sourceprint?1{ 2"name": "example-site-com/typo3-website", 3"description": "TYPO3 Website", 4"repositories": { 5    "my-yoast": { 6       "type": "composer", 7        "url": "https://my.yoast.com/packages/" 8        "only": ["yoast-seo-for-typo3/yoast_seo_premium"]9}

Google News doesn』t show recently published articles

Google News doesn』t show recently published articles

Google News articles are time sensitive and crawled more often than other parts of your site. Websites must submit a request to be included and be accepted before articles appear in Google News.

If you have not submitted your website, please follow the steps here.

If you have submitted your website, please use the URL inspection tool by following the steps here.

Publication date/time in the News XML Sitemap

Publication date/time in the News XML Sitemap

In the News XML sitemap, we use the GMT date and time for your publication. This might cause confusion sometimes, but is exactly according to the specification. At the section the W3C site is linked, where it says:

「Times are expressed in UTC (Coordinated Universal Time), with a special UTC designator (「Z」).」

UTC is the same timezone as GMT, just named differently. You can use one of the many time zone converters available on the web to determine if the time adjust was made correctly by WordPress.

There would be the other option of adding the date/time with a time zone designator, but we』ve found that』s much more error prone. Since WordPress already saves the GMT date/time in the database it』s actually also a lot easier from a development perspective.

Note: If the GMT time is incorrect, this is most likely caused by having an incorrect local time on your server. Please contact your webhost for assistance fixing the local server time.

Plugin Requirements

Plugin Requirements

Like most software, Yoast SEO has specific requirements to be able to run properly. Here, we list those requirements.

Note: In addition to the general requirements below, we recommend running current versions of everything on your site. That means you should regularly update your WordPress core, themes, and plugins. Learn why here.

Table of contents

WordPress versionPHP versionDatabase management systemsRequirements for Premium pluginsBrowser requirements

WordPress version 

Yoast SEO supports the two latest versions of WordPress for both our free and premium plugins.

PHP version

PHP is a scripting language used for web development. For Yoast SEO to run properly, you should have a PHP version of 5.6.20 or higher. 

In fact, we recommend the PHP version 7.3 or above. Before you upgrade to a higher PHP version, check if your WordPress site is ready for it. Read this help article to learn how to update your PHP version. Your PHP memory should be 256M or greater.

Database management systems

Yoast SEO requires: 

MySQL version 5.6 or greater ORMariaDB version 10.0 or greater

Note: Yoast SEO may work on legacy environments that do not meet the above requirements.

Requirements for Premium Plugins

To receive update notifications for premium plugins, your host must support:

cURL 7.34.0 or greater (released December 2013)OpenSSL 1.0.1 or greater (released March 2012)TLS 1.2 or greater (released August 2008)Do not use SSL v3

Browser requirements

To use our plugins in the admin you』ll need one of the following browsers:

The latest version of: 

Google Chrome for Android Samsung browser

The last two versions of:

Google ChromeFirefox SafariiOSEdgeOpera

Resolve notification 『You haven』t activated your Yoast SEO Premium subscription yet!』

Resolve notification 『You haven』t activated your Yoast SEO Premium subscription yet!』

As of Yoast SEO Premium 9.0, the plugin requires you to activate it for the website you』re using it on in order to use all the features you paid for. 

Now what?

Take me to MyYoast, I already know how to activate Yoast SEO Premium for my site.I know how to log in to MyYoast, help me add my site and activate Yoast SEO Premium.I』m new, help me get access to MyYoast.I haven』t purchased Yoast SEO for WordPress Premium yet, but I really want to now!

The notification in Yoast SEO

You probably ended up on this page because you saw the notification that says 「You haven』t activated your Yoast SEO Premium subscription yet! That means you are not benefiting from all the features you have, so please activate your subscription here.」 and want to get rid of it.

When you see this notification, it means Yoast SEO Premium hasn』t been activated for the website you』re on, or your site is unable to connect to MyYoast to verify that it』s activated. 

If you』re not sure what』s causing this notification on your site, feel free to reach out to our support team.

Template files for Local SEO

Template files for Local SEO

If you』re using Local SEO with multiple locations, you get a new custom post type. It』s called 「Locations」 in the admin, but under the hood it』s called wpseo_locations. This post type creates two types of pages: a custom post type archive page and single location pages.

Because of how the WordPress template hierarchy works, in a 「default」 theme, the custom post type archive would use the file archive.php, and the single location file would use single.php. This is, in many cases, not ideal. So it』s a good thing you can override that behavior!

Want to learn all about local SEO? In our Local SEO training, you』ll learn how to optimize the website of your local business for search engines. So you』ll start ranking in your area! Check out our Local SEO training.

The Custom Post Type Archive

To have your theme not use the archive.php file, you can create a file called archive-wpseo_locations.php. This file will need to be entered into your theme directory.

You could use this page, for instance, to show a map of all your locations. All your locations are expected to be shown at the /locations url.

You can find a good example of what such a page should look like in this gist, based on the WordPress TwentyTwelve theme:

The single location page

In the same way as you can create archive-wpseo_locations.php, you can also create single-wpseo_locations.php. The easiest fix here is often to just copy the page.php template into this file, that removes most of the comment stuff etc that single.php normally holds.

How to log in to MyYoast

How to log in to MyYoast

MyYoast is the customer portal where you can find and manage all the Yoast SEO products you own. If you don』t have an account yet or want to know how it all works, this guide will get you started.

Related articles

Change MyYoast email
Change MyYoast password
Common MyYoast issues

To log in on My Yoast, you need the email address you used to make your purchases on yoast.com and your password. If you don』t have a password yet or if you lost it, follow these steps to set or change your password. Go to https://my.yoast.com/login Enter the account email address in the 『Email address』 field Type your password in the 『Password』 field. Click 『Log in』

Can I watch this video in my own language?

Can I watch this video in my own language?

Did you know that YouTube can auto-translate our English subtitles? It』s not perfect, but it could be helpful for sure. Just follow the step below to auto-translate YouTube videos on desktop. Click the video and then pause it. You are now able to see the settings icon in the bottom right corner. Click the Settings icon. Click 『Subtitles/CC』 in the menu. Click the option 『Auto-translate』. Scroll down the list and select the language you prefer.

Configuration guide for News SEO

Configuration guide for News SEO

The News SEO plugin for the Yoast SEO helps you do all the things that allow you to optimize your site for Google News. It creates XML News Sitemaps so Google can pick up on new articles as soon as possible, and it helps you optimize some of the more advanced XML News sitemap options like stock tickers.

While this plugin won』t submit your site to Google News for you, it will help you optimize your site to appear as often and in the best way possible in Google News and in the universal search results.

Table of contentsHow to configure News SEOGoogle News publication namePost types to include in news sitemapPost tags and categories to excludeUsing News SEOExclude this post from Google NewsStock tickers

How to configure News SEO

To set up News SEO, go to the admin dashboard of your website and click SEO -> News SEO. Log in to your WordPress website. When you』re logged in, you will be in your 『Dashboard』. Click on 『SEO』. On the left-hand side, you will see a menu. In that menu, click on 『SEO』. Click on 『News SEO』. The 『SEO』 settings will expand providing you additional options. Click on 『News SEO』. You will see the following settings. We』ll go through these settings one-by-one.

Publication Name
Post types to include in news sitemap

Google News publication name

This is the name that appears when your news items are featured in Google News. This must match the name exactly as it appears in news.google.com.

Genre is no longer relevant for news XML sitemaps. Therefore, we removed this feature in Yoast SEO: News 12.7.

Post types to include in news sitemap

News SEO will list all post types you have on your website, so you can pick which ones should be included in the News Sitemap. You should only pick the post types that actually contain your news.

Post tags and categories to exclude

News SEO will list all the post tags and categories you have on your website. When you select a tag or category, any post types that have that will not appear on the news sitemap.

Note: if no post types are selected for inclusion on the sitemap, the 「Terms to exclude」 settings will not be shown.

Now it』s time to save your changes. After saving, you』ll see all the categories associated with the post types you selected. You can now choose which categories you want to exclude from the news sitemap.

Using News SEO

Once you set up News SEO, you can start using it for your articles. While writing your article, you can find the News SEO settings in the Yoast SEO sidebar.

Yoast News SEO in the sidebar

Or, after writing your article, scroll down to the Yoast SEO meta box and click on the plugin icon on the side, and then the Google News tab.

Exclude this post from Google News

You can choose per post if it should be excluded from Google News by marking the Exclude this post from Google News option. This will pull the article off of the sitemap. Selecting this option will make sure your article won』t appear in a Google News search. Please note that by selecting this option, it』s only expected that it will prevent your article from appearing in Google News. The article is still expected to appear in a regular Google search. Learn more about this feature here.

Stock tickers

Stock tickers are (Google Finance) references to companies that are in a stock market. You should only add a stock ticker if you mention the company in the post and it plays a significant role. Each ticker must be prefixed by the name of its stock exchange, and must match its entry in Google Finance. You can add up to five stock tickers per post.

For example:

CompanyStock TickerAppleNASDAQ:AAPLMicrosoftNASDAQ:MSFTRoyal Dutch ShellAMS:RDSA

Read more: News SEO: How to optimize your news site »

How to use the Rewrite & Republish feature in Yoast Duplicate Post

How to use the Rewrite & Republish feature in Yoast Duplicate Post

Keeping your content up to date and continuously monitoring its quality are crucial aspects of SEO. Of course, rewriting and updating your content is easier said than done, since it requires a lot of time and effort. We are aware of that, so we created a feature in Yoast Duplicate Post called Rewrite & Republish. The feature allows you to update a post or page in a single workflow. It』s a real time-saver, and it is good for SEO! 

In brief, with this feature, you can rewrite your post or page without taking it offline and then republish it immediately in just a few clicks. So, let』s take it step by step and explore how it works.

Using the Rewrite & Republish feature

In the example below, we show how you can rewrite and republish a post. However, the same steps apply to pages and other custom post types as well. Also, note that there are two ways to access the feature. In step 1, we explain how you can access it from the posts overview screen. Then, from step 2 onward, we show you how to access it from the post edit screen. Regardless of the method you choose, you will end up on the screen that lets you rewrite and publish your post. In the Post overview screen, hover the mouse over a post you have already published and select Rewrite & Republish. You will be in the post-editing screen, where you can immediately start rewriting the duplicated version of the post (If you use this method, you can jump straight to step 5 of this how-to guide). Alternative to step 1: Open an existing post. You will be in the post editor. Hover the mouse over the Duplicate post menu item in the toolbar at the top of the screen. A menu opens. Note: If you can』t see the toolbar on the top of the screen, you might have enabled the Full-screen mode. To disable it, go to the three vertical dots in the far right corner of the screen, and click on them. Then, de-select the Full-screen mode option. Select the Rewrite & Republish menu item (shown in the image above). You will see a notification at the top of the screen. It is to inform you that the plugin duplicated the original post or page. You can then start rewriting the duplicated version immediately. Make the necessary changes to the content. Pay special attention to the readability of your content, and check for outdated information. Ask yourself these questions: Is some of the content no longer relevant? Is there something incorrect? Can you re-write some sentences to make them sound better? In case you are struggling, our tips on how to rewrite your content may be helpful. When you are done editing, click the Republish button in the upper right corner of the screen. The plugin will merge the duplicated version (and the revision history) into the original post or page. In addition, the duplicated draft version will be automatically deleted and the original post or page will be updated. Optional: Save the changes and compare the old and the new version of the post. When you hit the Republish button, you will see some additional checks. One of them allows you to compare the old and the new versions of your post. Click on the button, and you will be taken to the revisions screen, where you』ll be able to see the changes you』ve made. Optional: Schedule the republishing of the post Another option that appears when you click the Republish button is the one that lets you schedule the republishing date and time. So, you won』t have to republish immediately. Instead you can choose the date and time that fits your needs. To select the republishing date, click on the Republish item. Then, the menu will expand, allowing you to select a time and date.

In summary, the Rewrite & Republish feature takes only a few steps to complete, yet, it can save you a ton of time. What is more, it makes sure you keep your content fresh! Want to learn more about why updating and maintaining your content is important? Then, you may find these articles interesting:

Update or delete? Cleaning up old content on your siteYoast Duplicate Post – the essential tool for anyone regularly working on their content