If you try the sitemap plugin on a big blog, the sitemap generated can be broken. This is not an error of the plugin, but almost surely an out of memory error. In PHP there are many way to try to save memory, in out plugin I will change the main loop in this way: […]
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 […]
Today I add an options panel to the Sitemap plugin. Before start coding I have to define what I want this panel to do and the data to collect. the max number of urls to be added to the sitemap, blank value will mean “all” a checkbox to enable the integration with other plugins (features […]
We are at the end. At least the last day to have the plugin really working. After this lesson, I will start a new series to add some features to this plugin (control panel, options, integration with other plugins). The last step is to print out XML elements that represent each single URL of our […]
Now we have a working even if stupid plugin. Today we look at how get all the posts from WordPress to generate the real sitemap. WordPress have a special function named get_posts. But functions like that extract to many data from the database, we usually need only the post date and the permalink.
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” […]
I wrote a number of plugins and every time I review the code of them I found someting can be improved or adjusted. I’m not talking about bugs but different way to implement the plugin actions. This tutorial will be a set of post where I dissect “my way to write a plugin”. I don’t […]
If you have question or support request about Comment Notifier, please write them here leaving a comment, it will be useful to others.
Other Posts is a very simple plugin that finds and prints related posts to the current your visitor is reading. As many other plugin. Other Posts can be configured defining with complete freedom the layout of the related posts list. It is to be used with Post Layout (or if you like to modify your […]
This post is almost empty and is dedicated to all you blogger using Post Layout. If you want ask for help about Post Layout usage, want to share your experience, leave a comment under this post. The best questions and the best answers will be moved to the Post Layout FAQ section.