Full Name Display Calendar Plug In

HomeForumsGeneral Support – NOT for Volunteer and PTA plugins!Full Name Display Calendar Plug In


Viewing 1 reply thread
  • Author
    • #14558
      Raymond Clark

      Is it possible to show the full name (first and last name) on the calendar display plugin?

    • #14560
      Stephen Sherrard

      It appears that I didn’t put the same output filter hook on the display name in the calendar, so you can’t use the code snippet I provided here:

      However, the templates for the way the calendar display things can be modified to show the info almost any way that you want. Check out the docs page here:
      Scroll down to the section titled “TEMPLATES & CUSTOM CSS”
      That describes where to copy the templates if you want to make changes.

      Then, all you need to do is edit the sheet.php template file. Look for the section that says SIGNUP NAME LIST START. Lines 100 to 102 display the name, and currently look like this:

      <span class="cal-signup-name">
      <?php echo esc_html( $this->get_signup_name($signup) ); ?>

      All you would need to do is change the middle line to:

      <?php echo esc_html( $signup->firstname.' '.$signup->lastname ); ?>

      Also, you can submit a feature request (so I can remember), and I’ll try to add that same output filter to the calendar function that gets the display name, so that the same code snippet for the main plugin will also work for the calendar display. If I have time today, I’ll try to put together a quick update to include that output filter, and any other similar filters that I may not have included in the calendar output functions.

Viewing 1 reply thread
  • You must be logged in to reply to this topic.