Okay
  Public Ticket #1255396
Team
Closed

Comments

  •  1
    Joshuawyborn1 started the conversation

    Hello,

    Is it possible to change the default alphabetical order of teams? in this case so dentist is before other team listings? IE:  not ADVANCED DENTURES  DENTAL DISORDERS DENTIST.


  •  89
    OrionThemes replied

    Hi,

    I would like to help you with this, but sadly there is no possibility to change the order in which the team-member categories are written on each team member. Not without reprogramming the widget.

    If you are fluent in php, you can check the /dentalia/widgets/so-widgets/orion-team-w/tpl/orion_team_w-template.php file and search for 

    $departments = get_the_terms( $post_id, 'department' );
    

    This fetches all the team member categories. You would need to reorder this array somehow.

    Kind regards,
    Andrej

    Attached files:  Screen Shot 2017-07-27 at 15.36.49.png

  •  1
    Joshuawyborn1 replied

    Hello,

    I would probably break it.. 

    How does the widget respond to spacebars? could i make the other category start with a space? would it treat that as a symbol and then put them at the back of the que?

    Josh

  •  89
    OrionThemes replied

    The issue with this is, that WordPress will delete space when you save department title with a space. 

    But your thinking is actually good and out of the box... What you could do, is add  ; html entity instead of space (it translates into space in browsers).

    Try to write it everywhere as " dentist" instead of " dentist".

    Kind regards,
    Andrej