Now-Reading: Default Filters on Book-Meta

Ever since upgrad­ing to the lat­est ver­sion of Rob Miller’s Now-Reading plu­gin, I noticed my sin­gle book pages were work­ing but not dis­play­ing every­thing cor­rectly. Specif­i­cally books I’d marked hav­ing been bor­rowed from my local library were being dis­played as:

  • I bor­rowed this book fromlibrary

When they should sim­ply have a line read­ing “I bor­rowed this book from my local library”. I had spent much
time fid­dling with my tem­plates try­ing to fig­ure out how the upgrade broke them and today I fig­ured it out. The truth is my tem­plate was just fine. The prob­lem is the newer ver­sion of Now-Reading was apply­ing a new fil­ter to book-meta1. That fil­ter is wpau­top and it was wrap­ping my vari­able in <p> … </p> tags. Those tags screwed up the dis­play and made my vari­able checks fail. To cor­rect the prob­lem, I went into now-reading/default-filters.php and com­mented out add_filter('book_meta_val', 'wpautop');. Now my sin­gle book pages look like they’re sup­posed to again. Yeah!

1 This is a cus­tom field avail­able in the back-end of the plu­gin and it is where I store the infor­ma­tion telling my tem­plate if I bor­rowed the book and from whom I bor­rowed it.

Share and Enjoy:
  • del.icio.us
  • Digg
  • StumbleUpon
  • Twitter
  • Reddit
  • Google Bookmarks
  • Facebook
  • MySpace
  • Yahoo! Buzz
  • Print

Similar Posts

  • Now-Reading Tweaks v2
    Some time back, I tried to make Rob Miller's Now-Reading plugin display who's reading each book on t ...
  • Reading List
    If you hop over to my library page, you'll notice my reading list has grown considerably. That's bec ...
  • XBMC-Hulu Update
    I've been using the Hulu plugin now for a few days and it's great but I do run into the occasional p ...
  • The Ladies of Mandrigyn and my next book to read
    I finished reading The Ladies of Mandrigyn last night and I have to give Ms. Hambly a bit of credit; ...
  • XBMC + Hulu = GOLD!
    I've been home sick today and when not sleeping I've been working to upgrade the version of XBMC I h ...

About Mark McKibben

Mark is a data analyst for [REDACTED], currently residing in the Midwest. CoffeeBear is a place for him to spout off about whatever catches his fancy. In his spare time, Mark does a bit of webdev & design. To stalk him more effectively, try following him on Twitter.

Leave a Reply

This work by Mark McKibben is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 United States.