Category Archives: Tutorials

Tutorial: Write a Sitemap Plugin Day 8

Today I complete two easy tasks: intercept the URL http://www.myblog.com/sitemap.xml to serve the sitemap (it will work only with WordPress on Apache and permalink active) ping Google when something happens in WordPress (eg. a post changed) The two modifications are very easy. The first is a matter to do a little parsing of request uri: [...]

Tutorial: Write a Sitemap Plugin Day 6

It’s time to make this sitemap plugin a little bit more “social”. How? As you learnt in previous lessons, WordPress has hooks that are called to give a way to “others” to make actions (over the default behaviour of WordPress). There are a lot (really a lot) of these hooks… and now we add one [...]

Tutorial: Write a Sitemap Plugin Day 2

Now we have a clear idea of the final product, so we can start to structure the plugin. Opsss, and the name? It can sound incredible but on the WordPress Plugin Directory the name “sitemap” is available. So our plugin will be named “sitemap”. Let’s start creating a folder named “sitemap” and the file “plugin.php” [...]