30
Jun
05

Using WordPress tags? Don’t forget to re-apply the tags patch!

Thanks to Joseph and my blogroll, I saw the WordPress 1.5.1.3 security update. I forgot to re-apply the tags patch from Felix Wong’s tags plugin the first time through. Doh! Thanks for posting this, Joseph.


5 Responses to “Using WordPress tags? Don't forget to re-apply the tags patch!”


  1. 1 jim wilde Aug 11th, 2005 at 21:55 UTC

    Hi,

    Sorry to bother you, but the comments on the developers site were not helpful. I just started with wp. I’m trying to install the tags plugin. Do I need to change the theme (connections) to use tags?

    Thanks,

    Jim

  2. 2 jim Aug 13th, 2005 at 08:00 UTC

    Hi Jim,

    Yes, you need to tweak your theme. It can be a bit of a pain, depending on what theme you’re running. Basically what I did was rip out the category code from J-blue and bolted in the code to list the 12 most-posted tags.

    What theme are you thinking of using?

    Jim

  3. 3 jim wilde Aug 13th, 2005 at 15:44 UTC

    Hi,

    Thanks for getting back to me. I’m using connections.

    Jim

  4. 4 jim Aug 14th, 2005 at 00:22 UTC

    I wasn’t familiar with this theme off the top of my head. I checked out the Connections page, and it doesn’t look as if the front page would be too hard to convert to tags. Here’s what I did to use tags in place of categories with Mike Little’s Journalized-Blue theme:

    1. Figure out which PHP file does the category listing. Go to wp-content/themes/{your_theme_directory} and search all the PHP files for “Categories”.
    2. Edit that file and find the code that does the category listing. Most likely this is done by a call to list_cats(). Figure out where the category listing starts and ends, semantically. For example, there may be “div” tags bracketing the category listing.
    3. I copy-and-pasted the entire category code into an IF-THEN-ELSE block, like so: IF (test) THEN list-categories ELSE list-categories. (I realize that this is pointless to have identical code in both the THEN and ELSE blocks. Bear with me.)
    4. Now for the conditional of the IF, use: if (function_exists(’list_tags’))
    5. Finally, edit the THEN block and change the category listing code to list tags instead. I think all I had to do was change the “Categories” header to “Tags”, and substitute “list_tags()” for “list_cats()”.

    Hope this helps. If not, leave me another comment and I’ll see what I can do.

  1. 1 SonicChicken weblog » Blog Archive » Upgraded to WordPress 1.5.2, patches [re-]applied Pingback on Sep 2nd, 2005 at 03:49 UTC

Leave a Reply




June 2005
M T W T F S S
    Jul »
 12345
6789101112
13141516171819
20212223242526
27282930  

Tags

a wok for all seasons abramoff accessibility acetylene active directory activism adodb aerial photo afrofunk aim4tree air america airport express alite alito amtrak andante andy antenna anti failure any browser apache appetizer apple apple pie applescript arden arcade arden park ariana arnold artichoke ashland astronomy attic attika audio avid reader backup baen bart bash batch bathroom bbq bee beef begonia bgg bike bike hikers bike journal bikejournal biketalk bill oreilly bittorrent blacklist blog bloggercode blogroll blueberry boardgamegeek boardgames bonjour book bookcrossing boot failure bootcamp borderline chaos bugmenot bush business card butter cabinetry caira caitlin california callsign candamir caroline carpet cat cateye cdrom celebration cellular phone century cfengine cheese chicken chico chimney chinese chipotle chocolate christmas chumby city bikes civilization cjd claire club club fed co op coconut coffee comfort food community computer concord congress conquest conservation consumer reports copyright costco crazybikerchick crepe crock pot cruftbox css csus curl currency custard cvntrak dagoba daniel goetz darwinports database datarescue date format death delicious monster democracy now Democrat demolition dessert dhcp dickens diff disaster discrimination discworld dishwasher disk mirror diskutil diskutility diskwarrior dixie belle dock doors downing street memo drm dryer drywall dtv dump ed burke eff eggs eject election electric car electric truck electrical electricity elvgren emacs email energy efficiency eric meyer esr etext euthanasia facebook family faq faux news fcc feed feedreader fence finder firefox fireworks first4internet first amendment fishmeal flash flickr flooring fondue foreign exchange foundation fox and goose framing freebsd freedback freetds fsck fundraiser fyq garage garden geek geotag geourl ginger gnutar go gonuls google google earth google maps gpl gracenote graywater greek green group concat gtd gunthers gutters gwbush gymnastics hacking halloween ham ham radio handspring hardwood harry potter headmeta heimdal high speed photograph high tech inv hoax hobbies hobby hodgins holiday holly home power magazine horcrux houseblogs how to html humor hvac ilovejackdaniels imac impeach init inspection insulation intel internet iostat ipod ipodder iq iraq isight iso itunes ivins iwantsandy java city javascript jean reno jet lag joint chiefs joseph jott journalized blue judges cup juliette binoche kctc kerberos khs kimkerry kitchen kyocera la salles la times labor landscape laundry law leatherbys legal lego leopard lhc liberal library linkedin ljurban lodi logic logo lungren lynx maaloufs mac macaroni macbook mafc mailinator make.conf malware map marin markdown martin yan mason media media clip media reform meetup metric mexican microsoft mike comfort military milonic mindstorms mlk model railroading modoc hall monterey morning sedition motorcycle movie moving mssql munchkin murray mushroom music mynetflix mysql n3jim nagios naked lounge nerd score netflix network new urbanism new year New Yorker nofollow nut nutella oatmeal obama obcz occidental occupation omni openssl oracle organic osx owp paint pair palast palm panasonic parallels party patch peak adventures peak oil pear pedestrian village perl petaluma php ping pingback pingomatic pingomation pingqueue pirate pl sql planet bike plasma playroom entertainment plugin plugin:preview theme plugin:text control plugin:ultimate tag warrior plumbing podcast podsite politics portaudit portmaster ports portupgrade postfix potato powerbook Pozsars printer programming project gutenberg pryde punk puzzle qiana qrz quilt quilt shop quiz quote r5 records racism radio RAID railroad recent comments recipe redalt remodel repairmirror resaurant resolution restaurant restore review richmond rio americano robotics roger niello ron montana roof rootkit rss sacbee sacog sacramento sacramento spotlight magazine salad samba san francisco sandwich santa cruz scam scandal school days scplugin screen security session report shakespeare shuffle sigma siriradha sitemap slim jim snl snopes social social network software soma somafab sonicchicken sonicchicken blog sony spam spam karma spellcheck spinach spinner spirit spoiler etiquette spring hill cheese sql sqlserver stairs standards statcounter stephen king stop loss stucco stunt subversion sudo sudoku superbowl superhero supreme court sushi svn sysadmin tacoma tags plugin takara technology telephone television template terms and conditions textcontrol thai kitchen thanksgiving the well seasoned wok theater theme theme:borderline chaos theme:elvgren theme:elvgren wordpress google code theme:fluid blue theme:fullwidth theme:head theme:journalized theme:journalized blue theme:psycho theme:redoable theme:sharepoint like theme:simple green theme:spirit theme:steam theme:wuhan theme:yadda theme switcher thomas tigris euphrates tile tinfoil hat toc tofu tower theater training transit transit oriented development tribute u haul uneasy rhetoric university village unix ad notes ups van zant veal veterans day video vie viking hobby vote smart w3c wall warboss washer washington post weather web web developer web server wikipedia windows windows server 2003 wishlist woodworking wordpress workplace wpblacklist wpgatekeeper wsj xserve yaaarr yard