Home›Forums›Feature Requests›Volunteer Sign-Up Sheets – Feature Requests›Show full last name of volunteer
- This topic has 7 replies, 4 voices, and was last updated 8 years, 8 months ago by Stephen Sherrard.
-
AuthorPosts
-
-
March 20, 2015 at 1:56 PM #3018Chris LParticipant
I’d like the option to show the full last name of the volunteer under “Available Spots”.
-
April 24, 2015 at 8:02 AM #3366Stephen SherrardKeymaster
Sorry there was a typo… add_filters should be add_filter (not plural).
The below code has been tested and works:
add_filter( 'pta_sus_display_signup_name', 'pta_modify_signup_display_name', 10, 2 ); function pta_modify_signup_display_name( $display_name, $signup ) { return esc_html($signup->firstname).' '.esc_html($signup->lastname); } -
April 24, 2015 at 9:23 AM #3367KymParticipant
Thank you!!!!
-
July 20, 2016 at 8:47 PM #11143Jim ShollinParticipant
I could use a little more help where the code resides – add_filter( ‘pta_sus_display_signup_name’, ‘pta_modify_signup_display_name’, 10, 2 );
-
July 20, 2016 at 9:27 PM #11145KymParticipant
Jim – the entire code snippet that Stephen provided above would go in your theme’s functions.php file. This assumes you have FTP access to your site’s files. It would be located in the wp-content/themes/[your theme]/ folder.
Kym
-
July 20, 2016 at 9:54 PM #11147Stephen SherrardKeymaster
Thanks for contributing Kym.
Jim, Kym is right, but you can also use the simple built-in editor in WordPress to copy and paste that code snippet I listed above into your theme’s functions.php file. Look under Appearance>Editor . Then, look for the functions.php file in the list on the right side of your screen (making sure your active theme is also selected first in the select box to select the theme to edit). Really best to have a child theme for that so that you can still update the parent theme without wiping out that added bit of code. In that case, be sure to select the child theme first, and edit its functions.php file.
-
July 21, 2016 at 8:32 AM #11153Jim ShollinParticipant
Thank you. That’s the direction I needed.
-
February 23, 2017 at 3:59 PM #14791Stephen SherrardKeymaster
This is now being added as a new option in version 2.0.1 – so, no code snippets required any more.
-
-
AuthorPosts
- The topic ‘Show full last name of volunteer’ is closed to new replies.