Ask here your questions about Hyper Cache BUT after read the Hyper Cache page: that pages has a lot of information. If you need to asking for help sending piece of code or debug information that are too large for a comment, write me to firstname.lastname@example.org. Of course, be clear when you leave a comment: […]
Not understanding how WordPress manages the magic quotes of PHP (PHP is no more supporting magic quotes gpc from version 6, and when this version will be released we see a lot of sites hacked…) I followed the WordPress startup code. The code is all in wp-settings.php. These my conclusions: $_REQUEST is redefined as a […]
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: […]
This post contains a gallery. Unser each image of the gallery there is a link added by my plugin eCards. Clickiing that link you can send the image as a eCard. The plugin is in the very early test phase: would you try it and help me to understand if it works? Here the gallery:
I started a discussion on WordPress forum on how to write plugin keeping in consideration performances and best practice. Read more here.
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.