Title: odrum's Replies | WordPress.org

---

# odrum

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

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

 Search replies:

## Forum Replies Created

Viewing 15 replies - 1 through 15 (of 30 total)

1 [2](https://wordpress.org/support/users/odrum/replies/page/2/?output_format=md)
[→](https://wordpress.org/support/users/odrum/replies/page/2/?output_format=md)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Forminator Forms – Contact Form, Payment Form & Custom Form Builder] Calculation error: ‘This value must be greater than or equal to 1’](https://wordpress.org/support/topic/calculation-error-this-value-must-be-greater-than-or-equal-to-1/)
 *  Thread Starter [odrum](https://wordpress.org/support/users/odrum/)
 * (@odrum)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/calculation-error-this-value-must-be-greater-than-or-equal-to-1/#post-17200884)
 * Thanks for responding Adam but it’s fixed (forgot I could use Pro support).
 * The fix was setting up 3 payment plans with conditions, where I just had 2 set
   up.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[CleanTalk Anti-Spam. Spam Firewall & Bot protection] Cron error when reactivating plugin](https://wordpress.org/support/topic/cron-error-when-reactivating-plugin/)
 *  [odrum](https://wordpress.org/support/users/odrum/)
 * (@odrum)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/cron-error-when-reactivating-plugin/#post-14369755)
 * I had the same error message on one of my sites and the solution worked. Thank
   you 🙂
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[A-Z Listing] A-Z directory not linking to anywhere on click](https://wordpress.org/support/topic/a-z-directory-not-linking-to-anywhere-on-click-2/)
 *  Thread Starter [odrum](https://wordpress.org/support/users/odrum/)
 * (@odrum)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/a-z-directory-not-linking-to-anywhere-on-click-2/#post-12777994)
 * Hi Daniel,
    Me again.
 * The directory works perfectly. However… it’s stopped the slider on the homepage
   from displaying the image of the latest post when it’s published. If I deactivate
   the A-Z plugin and then activate it, the slider image shows. Any ideas?
 * many thanks, M
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[A-Z Listing] A-Z directory not linking to anywhere on click](https://wordpress.org/support/topic/a-z-directory-not-linking-to-anywhere-on-click-2/)
 *  Thread Starter [odrum](https://wordpress.org/support/users/odrum/)
 * (@odrum)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/a-z-directory-not-linking-to-anywhere-on-click-2/#post-12515589)
 * Brilliant, it’s working. As always you’re a superstar Daniel!
 * There’s some random names don’t work as they have multiple words that aren’t 
   hyphenated eg. ‘Arts, Zaha Hadid at the Royal’, but they’ll have to stay as they
   are.
 * thank you so much, it’s hugely appreciated. M
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[A-Z Listing] A-Z directory not linking to anywhere on click](https://wordpress.org/support/topic/a-z-directory-not-linking-to-anywhere-on-click-2/)
 *  Thread Starter [odrum](https://wordpress.org/support/users/odrum/)
 * (@odrum)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/a-z-directory-not-linking-to-anywhere-on-click-2/#post-12514249)
 * Did a search and I can’t see anything other than in the plugin folder.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[A-Z Listing] A-Z directory not linking to anywhere on click](https://wordpress.org/support/topic/a-z-directory-not-linking-to-anywhere-on-click-2/)
 *  Thread Starter [odrum](https://wordpress.org/support/users/odrum/)
 * (@odrum)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/a-z-directory-not-linking-to-anywhere-on-click-2/#post-12513447)
 * The a-z-listing.php in the plugin folder?
 * Had to use this as there’s a weird block on wpbin.io site:
    [https://pastebin.com/0pNmEuMf](https://pastebin.com/0pNmEuMf)
 * Hope this is what you’re after.
    M
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[A-Z Listing] A-Z directory not linking to anywhere on click](https://wordpress.org/support/topic/a-z-directory-not-linking-to-anywhere-on-click-2/)
 *  Thread Starter [odrum](https://wordpress.org/support/users/odrum/)
 * (@odrum)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/a-z-directory-not-linking-to-anywhere-on-click-2/#post-12512836)
 * I’ve installed the plugin and put the site in troubleshooting mode. Enabled the
   A-Z in troubleshooting mode and added the function to the correct theme. It is
   displaying the surname first but the links still go nowhere. I also checked the
   links before I added to the functions.php and they worked so it’s the same on
   the Divi theme (used on the live site) as the default theme.
 * Now using this staging site: [https://www.staging2.alainelkanninterviews.com/interviews/interview-directory/](https://www.staging2.alainelkanninterviews.com/interviews/interview-directory/)
 * Suggestions?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[A-Z Listing] A-Z directory not linking to anywhere on click](https://wordpress.org/support/topic/a-z-directory-not-linking-to-anywhere-on-click-2/)
 *  Thread Starter [odrum](https://wordpress.org/support/users/odrum/)
 * (@odrum)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/a-z-directory-not-linking-to-anywhere-on-click-2/#post-12508687)
 * add_filter( ‘a_z_listing_item_indices’, ‘my_a_z_index_filter’, 10, 3 );
 * function my_a_z_index_filter( $indices, $item, $item_type ) {
    // make sure we’re
   filtering the right post type if ( ‘post’ === get_post_type( $item ) ) { // pull
   the title and get the first letter of the second word $full_name = explode( ‘‘,
   $item->post_title );
 *  // the last word is in the last element of $title_parts so check it is there
   
   $last_name = array_pop( $full_name );
 *  // ensure we actually found a last name
    if ( $last_name ) { // cut the first
   letter out for our index $index = substr( $last_name, 0, 1 );
 *  // set up a new empty array
    $indices = array();
 *  // only the first names are left in $full_name. Join them together again
    $first_names
   = join( ‘ ‘, $full_name );
 *  // Now put the last name first and separate with a comma+space from the first
   names
    $formatted_name = “{$last_name}, {$first_names}”;
 *  // add the new name associated with the item into the new array we created
    
   $indices[ $index ][] = array( ‘title’ => $formatted_name, ‘item’ => $item, );
 *  // return a new array with our new index letter instead of the
    // indices already
   discovered by the plugin return $indices; } }
 *  // if we get here we didn’t override the indices so return
    // those already
   discovered. return $indices; }
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[A-Z Listing] A-Z directory not linking to anywhere on click](https://wordpress.org/support/topic/a-z-directory-not-linking-to-anywhere-on-click-2/)
 *  Thread Starter [odrum](https://wordpress.org/support/users/odrum/)
 * (@odrum)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/a-z-directory-not-linking-to-anywhere-on-click-2/#post-12507723)
 * Hi,
    Thanks for getting back to me.
 * Yes, you are correct.The live site links work but the surname isn’t first, whereas
   the staging site displays correctly with the surname first but the links go nowhere.
   [https://www.staging1.alainelkanninterviews.com/interviews/interview-directory/](https://www.staging1.alainelkanninterviews.com/interviews/interview-directory/)
 * I’d prefer to work on the staging site and get it working (as can’t afford to
   break the live site) if that’s ok?
 * thanks, M
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[A-Z Listing] A-Z directory not linking to anywhere on click](https://wordpress.org/support/topic/a-z-directory-not-linking-to-anywhere-on-click/)
 *  Thread Starter [odrum](https://wordpress.org/support/users/odrum/)
 * (@odrum)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/a-z-directory-not-linking-to-anywhere-on-click/#post-10830237)
 * Hi Daniel,
    Thanks for getting back to me.
 * Removing the customised .php in the child theme remedies the links going nowhere.
   BUT… you kindly wrote code for me to hook the surname instead of the first name
   and removing that file buggers that up.
 * The live site now has a no column list that works but alphabetically lists from
   the first name. I have a staging copy of the site that has the a-z by surname
   and in (squashed) columns but the links don’t work.
 * Does that make sense? I know you are busy but help appreciated!
    thanks, Morven
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[reCaptcha by BestWebSoft] ReCaptcha missing from wplogin](https://wordpress.org/support/topic/recaptcha-missing-from-wplogin/)
 *  [odrum](https://wordpress.org/support/users/odrum/)
 * (@odrum)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/recaptcha-missing-from-wplogin/#post-9897544)
 * Hi,
    To gain access to your site:
 * Login to your site’s files (either using Filezilla or similar) or go to your 
   hosting cpanel if you have one.
    – wp-content/plugins/Captcha (or whatever folder
   is called) – rename the folder ReCaptcha(or whatever folder is called)-disabled–
   go back to your site and you should be able to login
 * you’ll see the plugin is disabled. You can either try and fix the issue or delete
   it and start again (which I have).
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[A-Z Listing] Broken after latest update](https://wordpress.org/support/topic/broken-after-latest-update-2/)
 *  Thread Starter [odrum](https://wordpress.org/support/users/odrum/)
 * (@odrum)
 * [8 years, 10 months ago](https://wordpress.org/support/topic/broken-after-latest-update-2/#post-9435691)
 * You’ll be very pleased to know that all is good with the latest update 🙂 Many
   thanks 🙂 M
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[A-Z Listing] A_Z by surname (second word of post title)](https://wordpress.org/support/topic/a_z-by-surname-second-word-of-post-title/)
 *  Thread Starter [odrum](https://wordpress.org/support/users/odrum/)
 * (@odrum)
 * [8 years, 10 months ago](https://wordpress.org/support/topic/a_z-by-surname-second-word-of-post-title/page/2/#post-9432673)
 * I’m back… I just updated the plugin and it’s trashed my lovely surname listing
   you spent ages sorting. Help! The code for hooking the surname you gave me was
   put in to a functions file in the child-theme and I styled it in to columns. 
   What am I missing? Have I done something dumb?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[A-Z Listing] A_Z by surname (second word of post title)](https://wordpress.org/support/topic/a_z-by-surname-second-word-of-post-title/)
 *  Thread Starter [odrum](https://wordpress.org/support/users/odrum/)
 * (@odrum)
 * [8 years, 10 months ago](https://wordpress.org/support/topic/a_z-by-surname-second-word-of-post-title/page/2/#post-9415970)
 * GENIUS…
 * You have been unbelievable with the amount of help you’ve given me in sticking
   with this, thank you so much!
    Morven
    -  This reply was modified 8 years, 10 months ago by [odrum](https://wordpress.org/support/users/odrum/).
      Reason: forgot to click resolved
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[A-Z Listing] A_Z by surname (second word of post title)](https://wordpress.org/support/topic/a_z-by-surname-second-word-of-post-title/)
 *  Thread Starter [odrum](https://wordpress.org/support/users/odrum/)
 * (@odrum)
 * [8 years, 10 months ago](https://wordpress.org/support/topic/a_z-by-surname-second-word-of-post-title/page/2/#post-9415467)
 * I wrote a reply but it’s disappeared 🙁
 * Hurrrah… you are a superstar, it worked!
 * but and last want (honestly)… it’s displaying the first name then surname so 
   looks very confusing. Is there a way to display like e.g.: Llewellyn, Daniel
 * Also in the future if you’re going to look at this further, you might take in
   to consideration… I have a few names which have a middle name or names such as‘
   de la…’ it’s picking up instead of the surname
 * You really have been top class with your help 🙂
    M

Viewing 15 replies - 1 through 15 (of 30 total)

1 [2](https://wordpress.org/support/users/odrum/replies/page/2/?output_format=md)
[→](https://wordpress.org/support/users/odrum/replies/page/2/?output_format=md)