Title: keith_wp's Replies | WordPress.org

---

# keith_wp

  [  ](https://wordpress.org/support/users/keith_wp/)

 *   [Profile](https://wordpress.org/support/users/keith_wp/)
 *   [Topics Started](https://wordpress.org/support/users/keith_wp/topics/)
 *   [Replies Created](https://wordpress.org/support/users/keith_wp/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/keith_wp/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/keith_wp/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/keith_wp/engagements/)
 *   [Favorites](https://wordpress.org/support/users/keith_wp/favorites/)

 Search replies:

## Forum Replies Created

Viewing 11 replies - 1 through 11 (of 11 total)

 *   Forum: [Reviews](https://wordpress.org/support/forum/reviews/)
    In reply to:
   [[Test Content Generator] Great plugin :-)](https://wordpress.org/support/topic/great-plugin-40724/)
 *  Plugin Author [keith_wp](https://wordpress.org/support/users/keith_wp/)
 * (@keith_wp)
 * [1 year ago](https://wordpress.org/support/topic/great-plugin-40724/#post-18587584)
 * No worries, appreciate the kind words and I’m happy it’s useful.
 * I’m not a big WPCLI user either, but it comes into its own for anything you repeatedly
   do with WP – add the right chain of commands into a short script, and it’ll make
   those jobs a lot quicker and less error prone.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Keep Pagination in Same Taxonomy] Previous & Next Navigation Wrong Way Around](https://wordpress.org/support/topic/previous-next-navigation-wrong-way-around/)
 *  Plugin Author [keith_wp](https://wordpress.org/support/users/keith_wp/)
 * (@keith_wp)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/previous-next-navigation-wrong-way-around/#post-18499915)
 * I never got around to adding sort options, so it doesn’t change anything from
   the default ordering of posts that WP returns (by published date).
 * I’m guessing your “next post” was actually published before the “previous post”?
   Try manually setting the date in the affected posts and see if that’s better.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Test Content Generator] Compatibility PHP 8.2](https://wordpress.org/support/topic/compatibility-php-8-2-3/)
 *  Plugin Author [keith_wp](https://wordpress.org/support/users/keith_wp/)
 * (@keith_wp)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/compatibility-php-8-2-3/#post-18405041)
 * I’ve just checked and it still works fine on 8.1 (and maybe?? even from 7.4 when
   class property typing was introduced) – I’ve just upped the version number to
   be safe if/when I use some of the new 8.3 features and not realise it.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Test Content Generator] Compatibility PHP 8.2](https://wordpress.org/support/topic/compatibility-php-8-2-3/)
 *  Plugin Author [keith_wp](https://wordpress.org/support/users/keith_wp/)
 * (@keith_wp)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/compatibility-php-8-2-3/#post-18403686)
 * Thanks, forgot my dev box was stuck on 8.1… I’ve updated to 8.3 and fixed the
   deprecation warnings in the 0.4.4 release.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[SpamPot] Breaks login… says registration is disabled](https://wordpress.org/support/topic/breaks-login-says-registration-is-disabled/)
 *  Plugin Author [keith_wp](https://wordpress.org/support/users/keith_wp/)
 * (@keith_wp)
 * [10 years ago](https://wordpress.org/support/topic/breaks-login-says-registration-is-disabled/#post-7457538)
 * I’ve updated the plugin to at least stop breaking a site when it fails, and also
   made the regex a bit more robust – honestly, I’d be at a loss to make it any 
   more generic; so if it fails now, it’s likely for a different reason I haven’t
   thought of yet.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[SpamPot] Breaks login… says registration is disabled](https://wordpress.org/support/topic/breaks-login-says-registration-is-disabled/)
 *  Plugin Author [keith_wp](https://wordpress.org/support/users/keith_wp/)
 * (@keith_wp)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/breaks-login-says-registration-is-disabled/#post-7457533)
 * If you’re getting that message, then SP isn’t putting the “fake” field into the
   login form and so any entry is something to be rejected.
 * Which version of WP are you using? Or do you have any other fields on the login
   page? This plugin relies on a regex to alter the HTML and if that fails, it’ll
   break.
 * I’ll update this and release a version where if it does fail, it will at least
   not break the form…
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[SpamPot] Is breaking my registration?](https://wordpress.org/support/topic/spampot-is-breaking-my-registration/)
 *  Plugin Author [keith_wp](https://wordpress.org/support/users/keith_wp/)
 * (@keith_wp)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/spampot-is-breaking-my-registration/#post-7394304)
 * Probably not; if you’re getting that message, then SP isn’t putting the “fake”
   field in and treating any entry as something to be rejected.
 * Looking at your form field list it’s probably due to the regex expecting the 
   default registration fields and failing there. Are you using a plugin to add 
   the extra fields or doing it by hand?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Extra User Data] How do you use?](https://wordpress.org/support/topic/how-do-you-use-1/)
 *  Plugin Author [keith_wp](https://wordpress.org/support/users/keith_wp/)
 * (@keith_wp)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/how-do-you-use-1/#post-7426822)
 * Automatic – as soon as you activate the plugin, it’ll add those extra columns
   to the User screen.
 * Depending on what else you’ve got going on in the backend, you can either move/
   hide/widen columns within an existing plugin/functions.php or use my “Adjust 
   Users Screen” plugin to do so.
 * (Sorry for late reply, I don’t check here often enough.)
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[ReciPress] [Plugin: ReciPress] don't use php short tags](https://wordpress.org/support/topic/plugin-recipress-dont-use-php-short-tags/)
 *  Thread Starter [keith_wp](https://wordpress.org/support/users/keith_wp/)
 * (@keith_wp)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/plugin-recipress-dont-use-php-short-tags/#post-2422900)
 * Re. not saving the ingredient measurements when adding a new recipe: I’ve checked
   now and it is because I added custom units. As they’ve been stored in the db 
   options with carriage returns as the separator and update_post_meta() doesn’t
   do any trimming, they don’t subsequently match any of themselves again.
 * In meta_box.php, I’ve changed:
    `if ($new && $new != $old) { update_post_meta(
   $post_id, $field['id'], $new); to quickly trim measurements: if ($new && $new!
   = $old) { if ('ingredient' == $field['id']) foreach ($new as &$ingredient) $ingredient['
   measurement'] = rtrim($ingredient['measurement']); update_post_meta($post_id,
   $field['id'], $new); but it’d probably be better handled when saving the custom
   units initially.
 * Also, [http://wordpress.org/extend/plugins/lightbox-plus/](http://wordpress.org/extend/plugins/lightbox-plus/)
   has been working very nicely with the instruction images – I can now flip through
   a mini gallery of full size photos per recipe. Now I just need to take better
   photos 🙂
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[ReciPress] [Plugin: ReciPress] don't use php short tags](https://wordpress.org/support/topic/plugin-recipress-dont-use-php-short-tags/)
 *  Thread Starter [keith_wp](https://wordpress.org/support/users/keith_wp/)
 * (@keith_wp)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/plugin-recipress-dont-use-php-short-tags/#post-2422690)
 * No worries – it is still a dev release after all.
 * A couple of other things:
    - typo on line 19 of output.php – “Yeild”
    - and I can’t save Measurements on the initial post save; that may be because
      I added a few custom measurements in the options? I’ll check tomorrow.
    - You’ll be pleased to know that uncommenting the image per instruction bits
      in meta_box.php almost works right away:
 *  - the table is now too wide for the edit template – adding “float:left” to the“
      Upload Image” button is a quick fix for my screen width at least
    - it saves the post ID of the media library image, not the src so on line 234
      you’ll need something like:
       `if($row['image']) { $src = wp_get_attachment_image_src(
      $row['image'], 'thumbnail' ); echo $src[0]; }`
    - and likewise on the frontend side in functions.php, something like:
       `$output.
      = '<li style="clear:right">'; if (isset($instruction['image']) AND is_numeric(
      $instruction['image'])) { $src = wp_get_attachment_image_src( $instruction['
      image'], 'thumbnail' ); $output.= '<img style="float:right;margin-bottom:10px"
      src="'.$src[0].'" width="'.$src[1].'" height="'.$src[2].'" alt="" />'; } $
      output .= $instruction['description'].'
    - ‘;
       in the instructions loop, although preferably a bit less quick’n’dirty
      🙂 I also needed to add “clear:right” to the #recipress_recipe .recipe-taxes
      style…
 * Another thought/feature request – using something like soundex to determine that
   something like “carrot” and “carrots” are the same ingredient?
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [[Plugin: NextGEN Gallery] Missing description under thumbnails](https://wordpress.org/support/topic/plugin-nextgen-gallery-missing-description-under-thumbnails/)
 *  [keith_wp](https://wordpress.org/support/users/keith_wp/)
 * (@keith_wp)
 * [17 years, 5 months ago](https://wordpress.org/support/topic/plugin-nextgen-gallery-missing-description-under-thumbnails/page/3/#post-925258)
 * Nixanadoo,
 * I had a similar (if not identical) problem on that page – I was using quotes 
   in the alt text/title for an image and they weren’t appearing in the form fields
   when managing a gallery after adding them.
 * The bug fix for this is to open up admin/manage-images.php and change line 354
   from:
    `<input name="alttext[<?php echo $pid ?>]" type="text" style="width:95%;
   margin-bottom: 2px;" value="<?php echo stripslashes($picture->alttext) ?>" />`
 * to:
    `<input name="alttext[<?php echo $pid ?>]" type="text" style="width:95%;
   margin-bottom: 2px;" value="<?php echo htmlentities(stripslashes($picture->alttext))?
   >" />`
 * (In other words, add at least the htmlentities() function to any text that can
   get displayed between hardcoded quotes etc, in this case the value=”” bit.)

Viewing 11 replies - 1 through 11 (of 11 total)