odrum
Forum Replies Created
-
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.
I had the same error message on one of my sites and the solution worked. Thank you 🙂
Forum: Plugins
In reply to: [A-Z Listing] A-Z directory not linking to anywhere on clickHi 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
In reply to: [A-Z Listing] A-Z directory not linking to anywhere on clickBrilliant, 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
In reply to: [A-Z Listing] A-Z directory not linking to anywhere on clickDid a search and I can’t see anything other than in the plugin folder.
Forum: Plugins
In reply to: [A-Z Listing] A-Z directory not linking to anywhere on clickThe 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/0pNmEuMfHope this is what you’re after.
MForum: Plugins
In reply to: [A-Z Listing] A-Z directory not linking to anywhere on clickI’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/
Suggestions?
Forum: Plugins
In reply to: [A-Z Listing] A-Z directory not linking to anywhere on clickadd_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
In reply to: [A-Z Listing] A-Z directory not linking to anywhere on clickHi,
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/
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
In reply to: [A-Z Listing] A-Z directory not linking to anywhere on clickHi 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,
MorvenForum: Plugins
In reply to: [reCaptcha by BestWebSoft] ReCaptcha missing from wploginHi,
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 loginyou’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
In reply to: [A-Z Listing] Broken after latest updateYou’ll be very pleased to know that all is good with the latest update 🙂 Many thanks 🙂 M
Forum: Plugins
In reply to: [A-Z Listing] A_Z by surname (second word of post title)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
In reply to: [A-Z Listing] A_Z by surname (second word of post title)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, 9 months ago by odrum. Reason: forgot to click resolved
Forum: Plugins
In reply to: [A-Z Listing] A_Z by surname (second word of post title)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