web publishing magazine

WordPress —
Create sitemap.xml without PlugIn

If you want to create a sitemap.xml (for example for Google’s Search Console) with WordPress and do not want to use a plug-in, you can do this with the following PHP code. This must be in the functions.php file of the theme. In this example, all posts and pages are listed in the sitemap file. As soon as a post or a page is created or modified, the sitemap file is rewritten.

If you publish the WordPress blog via MAMP PRO (Remote-Tab), you have to replace the local host with the target host name when outputting the URL (field <loc>). The following example shows this.

Say hello to the new WordPress editor

If you are already curious about what WordPress 5 will offer, take a look at the beta of the new editor “Gutenberg”.

We call the new editor Gutenberg. The entire editing experience has been rebuilt for media rich pages and posts. Experience the flexibility that blocks will bring, whether you are building your first site, or write code for a living.

At the WordPress experts of Kinsta you will also find an article with pros and cons. Also as a theme developer you have to pay attention to some things around the new editor.