Wordpress

You are currently browsing the archive for the Wordpress category.

Since I deactivated Extended Live Archives for this blog (because nobody really used it and it adds code and style sheets to the page) I played around with some code from the web to generate a Wordpress archive page which would group together years and months of blog posts (yeah, I can really speak of “years” and “months”, Stopbeingcarbon.com is now over three years old).

One drawback I found by accident is the query number for this specific code. years*12+n (which results in about 600 queries for my blog). Not so good.

So I had a look at my mysql logs and found a reoccurring line which selects a single post via an id. Googling brought up some results with get_permalink() as the malefactor. The get_permalink() function takes an id of a blog post and returns the permalink. Which is nice, but I already had the post, I just needed the permalink.

By copying the function, removing one line (the post-loading-thing) and renaming the argument I had a new function which would give me the permalink from a post object. Outcome: query count is down to one tenth and I’m happy (as well as my db server).

I am currently working on my Wordpress Theme and wanted to get rid of my livesearch and use a plugin instead. Unfortunately the only one I could find, Addicted Live Search, doesn’t work with Wordpress 2.1.

So I updated the source and tweaked some settings (2 seconds polling intervall for the search box instead of 1; a miniumum search query length of 2 letters). You can get the updated zip here: http://www.stopbeingcarbon.com/addictedlivesearch.zip

I’ve just upgraded to Wordpress 2.1 “Ella”, which went really smoothly. Doesn’t feel very different (the first thing I’ve noticed is the Autosave functionality which tells me that Firefox can crash if it wants and I don’t have to be afraid of loosing my unsaved posts) but it’s still nice to hear something new from Wordpress.org.

Download from Wordpress.org

You may have noticed that I’m currently working on a new theme for Stop Being Carbon (actually it is a modification of the great Hemingway theme).

Because I haven’t worked with Wordpress templates for a long time, I wanted to lookup somethings in the Wordpress codex. Bad idea:

Warning: file\_get\_contents(http://api.search.yahoo.com/WebSearchService/[...]):[...] We couldn’t find anything! Please try a different search. Search powered by kick-butt Yahoo! Web Search.

Wordpress and Yahoo. Kick-butt? Unlikely.

Woke up this morning and simply had to upgrade to WP 2.0. And one thing I can say before all the others I will write: It’s amazing!

At first I had some fears that most of my plugins won’t work anymore or my theme would be broken, but everything went quite smoothly. The only thing that didn’t work was my customized Technorati Tagging plugin by Benedict O’Neill. But I simply replaced it with Ultimate Tag Warrior, which is indeed ultimate. Imported all my old tags and - tada! - here it is, Stopbeingcarbon.com, powered by Wordpress 2.0.

Here is a list of all plugins I currently use and which seem to work fine:

  • Extended Live Archives
  • Del.icio.us Integrator
  • Gravatars
  • Markdown
  • Related Posts
  • Subscribe To Comments
  • Dunstan’s Time Since
  • WordPress Database Backup

Und wieder einen Bloguser zu Wordpress bekehrt: Martin Pyka ist gestern von bBlog auf Wordpress umgestiegen. Gratulation!

btw, wer das noch vorhat, auf wildgardenseed.com gibt’s einen Importer.

Der heutige Tag ist ja richtig produktiv.
Hab es soeben geschafft, dass Technorati meine Tags wieder indiziert. Wie? Indem ich das Technorati Tagging Plugin von Benedict O’Neill ein bisschen modifizert habe.

Genauer gesagt habe ich die Funktion bon_technoratiTagging so modifiziert, dass sie die Tags nicht mehr automatisch im Loop an den Post anhängt (was mit meinem Problem eigentlich nichts zu tun hat, aber praktisch ist, wenn ihr für Posts mal keine Tags vergeben wollt) und eine neue Funktion geschrieben, bon_technoratiTaggingFeed, welche euch die Tags jeweils mit einem $before_tag und einem $after_tag ausgibt.

Und weil ich ja nicht so bin, gibt’s das File zum Download: http://www.stopbeingcarbon.com/files/technoratitagging.phps

Mir ist gerade aufgefallen, dass Technorati meine Tags nicht mehr erfasst. Hatte dieses Problem zwar schon mal, kann aber beim besten Willen nicht mehr daran erinnern, was ich damals gefixt habe.
Ich verwende seit der letzten Umstellung Technorati Tagging, vielleicht hängt es damit zusammen?

All jene, die meine Seite in den letzten Tagen nicht erreichen konnten, sollte es jetzt wieder möglich sein, meine Entries zu lesen. Das Problem lag bei mod_gzip. Das Modul war vor den Ausfällen aktiv, wurde danach jedoch abgeschalten. Ich habe in Wordpress allerdings noch immer die Kompression aktiviert gehabt und hier dürfte der Fehler gelegen haben. Wobei komischerweise nicht alle User betroffen waren (mich inkludiert).

Habe es endlich geschafft, meine Link-Section richtig einzurichten. Mir haben dazu lediglich ein paar Zeilen Code gefehlt:

<?php
 $link_cats = $wpdb->get_results("SELECT cat_id, cat_name FROM $wpdb->linkcategories");
 foreach ($link_cats as $link_cat) {
 ?>
<h4><?php echo $link_cat->cat_name; ?></h4>
 <ul class="ul_class">
   <?php get_links($link_cat->cat_id, '<li>', '</li>', '<br />', FALSE, '_id', TRUE, FALSE, -1, FALSE); ?>
 </ul>
<?php } ?>

Macht im Prinzip nichts anderes, als in einem Loop die Einträge jeder Kategorie zu schreiben. Simpel.

« Older entries

Identify Thunderbird Wheels Saint Louis Missouri Airport Phone Number Vasopressin Drip Monitors Replacement Value Homeowners Insureance Tanya Lynn Stacey What Is Romex Wire Faqs About Mutual Funds Pam Anderson Video Download File Crystal Cover State Park B-2 Flight Simulator X Download Las Vegas Church Music Concerts Avoid Every Appearance Of Evil Custom Heat Lars Kopmann Coldwater Michigan Railroad Meriweather Lewis Dog Seamen Motorola Charging Razor With Usb Report Writing Lesson Plan 20 What County In Miami Florida In Sample Of Fax Cover Page Decolonisation After World War Two Las Vegas Auto Body Convention Network Problems With Os 10.4.11 Define Nic Lights Consultant Sample Bid Exchange Rate Quetzales Dollar Asha Asta Marty Hudgins Maryland Sheet Music For Songs From 1982 Average Annual Business Expense On Traveling P N 113-41902-106 Babe Petite Largest Neopolitan Mastiff Croswell Gardens College Football Clothing For Fans What Is Flake Hominy Shoemaker Scholarship Tarjeta Video Y Sonido Municipal Addressing Officers Identifying Project Sponsors G J Ranch Wilmington Ohio Rigid Mountain Bike Forks Red Abercrombie Boy Models Futon Furniture Center Nextag Larry Smith Marine Ne7 7qx Taylor Wild Safety Of The Bike Brand Next Pagan Shopping Occult Wicca Witchcraft Supplies Axis Mortgage Mesa Larry Burditt Real Estate Fox Network Detriot Cola Center Conseil Marketing Op Rationnel Avery Personal 9100 Label Printer Coefficient Of Expansion For Concrete Blocks Curios George Books Box Set Oust Air Sanitizing Information Faralla Raoul Azek Wood Pecker What Medicines Cure Heartburn Shock Game Handles Lambda Passages Define A Registered Nurse Denver Nursing Home Rights Shaler Area Library Denjo What Is A Net Lease Papoose The Lyrical One Dr Steven Pickren Defense Contractors In Huntsville Al What Is A Normal Sized Dick What Makes A Dog Go Bald Mexico Winter Vacation Martina Briehl Fusz Lou Pontiac Variation Of A Function Tech Know Torrent Ibew Local 364 Coldwell Banker Johnson City Tennessee Maryland University Medicine Herbs Mandala Plates Larson Show Me Yer Tits Decontamination Of Strontium 90 Demadex Dosing Installing Microwave Range Hoods Deaths From Tainted Dog Food Exit Petros Las Adelfas Hotel Miniature Gold Background Pictures Salem Stop Home Foreclosure New Commercial Development And Lake Wylie Cum Island What Is Barbie's Sister's Name Aziza Hill Variety Of Luxury Pillows Ascention Lutheran Colorado Springs Driver Muratec Mfx-1300 Association Medinah Terrace Muncie In Tuxedo Rental