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 […]
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.
This post is classified in the “fake category” of this blog. Post Layout Pro is configured to do different top, bottom and middel injection for posts within this category. As always, here I insert a “more break to test the middle injection.
This post is to test Post Layout Pro. For this post, and only for this one, the top injection has been blocked. The injection can be stopped setting some flags at the bottom of WordPress editing page, there is a Post Layout Pro section. Now, under this line, I’ll put the “more break”.