Category Archives: WordPress

Every Stack Decays; Plan for It

By | November 19, 2024

This post is a postmortem and celebration of my old web server that was ten years old before it needed to be replaced instead of trying to update it. Every stack decays over time. If your thinking web development a stack might be LAMP or MEAN. Stack in this context is the web server operating system itself, the HTTP server and any other software layering that makes running a web server easier. My goal in using WordPress for my blog was to create a platform that would allow me to focus on writing without worrying about technical details. The choice of WordPress seemed like an ideal solution at the time—popular, secure, and easy to use. However, as the years have passed, I’ve come to realize that these abstractions often come with hidden costs. Only my lack of experience at the outset obscured the implicit agreement to update and maintain the software abstractions I chose to use.

Using multiple categories in EventCalendar3 for WordPress (update 1)

By | June 11, 2006

wp-includes/classes.php line 679-702, for the Events listed outside of the Event category if (mysql2date(‘U’, $this->posts[0]->post_date_gmt) > mysql2date(‘U’, $now)) { //it’s future dated $this->is_preview = true; /* DIRTY FUTURE-POSTS HACK FOR EC3 */ if (function_exists(‘ec3_get_calendar’)) { global $ec3; $ec3_post_0_is_event = intval($wpdb->get_var( “SELECT COUNT(0) FROM $wpdb->post2cat WHERE post_id=” .$this->posts[0]->ID.” AND category_id IN (‘$ec3->event_category’,’14’)”)); if ($ec3_post_0_is_event) { $this->is_preview… Read More »

Using multiple categories in EventCalendar3 for WordPress

By | June 11, 2006

So I read at a few points that EventCalendar 3.1 was on its way, but I decided to start mangling some code to get multiple event categories to work! Open eventcalendar3.php near line 525; // Which posts are we interested in? if($ec3->show_only_events) { // Category ID number for event posts. $where_post = “category_id IN (‘$ec3->event_category’,’14’)”;… Read More »