Now-Reading: Default Filters on Book-Meta
Posted by | Filed under Plugins, WordPress
Ever since upgrading to the latest version of Rob Miller’s Now-Reading plugin, I noticed my single book pages were working but not displaying everything correctly. Specifically books I’d marked having been borrowed from my local library were being displayed as:
- I borrowed this book fromlibrary
When they should simply have a line reading “I borrowed this book from my local library”. I had spent much
time fiddling with my templates trying to figure out how the upgrade broke them and today I figured it out. The truth is my template was just fine. The problem is the newer version of Now-Reading was applying a new filter to book-meta1. That filter is wpautop and it was wrapping my variable in <p> … </p> tags. Those tags screwed up the display and made my variable checks fail. To correct the problem, I went into now-reading/default-filters.php and commented out add_filter('book_meta_val', 'wpautop');. Now my single book pages look like they’re supposed to again. Yeah!
1 This is a custom field available in the back-end of the plugin and it is where I store the information telling my template if I borrowed the book and from whom I borrowed it.
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 ...















Recent Comments