Flask basics: dynamically adding form elements

Sometimes you want to dynamically add elements to forms if certain information pre-exists. In this instance I wanted to add an option change the information displayed but I didn’t want the form fields to be there all the time and it was neater to simply not render them than remove them using JavaScript. Also, the […]

WordPress hacking: display only future posts

I recently inherited a WordPress site which uses a future posts plugin to allow you to publish posts with dates in the future. ThisĀ is great and a very simple solution for sites that list events but don’t need complex calendar functionality. However, it had no way of automatically removing events listings which were now in […]