When displaying Staff Members on a page there is an option to order by title, however by default this orders alphabetically by first name - is there a specific file I can edit to change this so that it orders alphabetically by last name, instead of first?
Thank you, can you kindly point out the file that controls the order by behavior so I can try to write customized code to accomplish what I need? Any guidance is appreciated, thank you!
Thank you! I currently have it set to "No Navigation", so I assume then it would be in this file: wp-content/themes/thefox/functions/rd_shortcodes/rd_staff_posts.php correct?
Any additional guidance you can give as to which specific line(s) need to be edited would be greatly appreciated, thanks again!
You would need to create a totally new function if you want to order by the last name ( so the second word of the title ) and then change the query option.
All the default query options are already available from the module so you would need to add your custom function.
When displaying Staff Members on a page there is an option to order by title, however by default this orders alphabetically by first name - is there a specific file I can edit to change this so that it orders alphabetically by last name, instead of first?
Hello Andrew,
Unfortunately this is not possible, what we could do is change the publishing time of the posts to re-arrange the order.
Do not hesitate to contact us if you have more questions.
Have a nice day!
Regards.
---------------------
Hosting we recommend ( Free SSL and CDN included in all plan ).
Speed up your site with Autoptimize
Test your site with GTmetrix and fix the issue to make it faster
How to Update your Theme
Thank you, can you kindly point out the file that controls the order by behavior so I can try to write customized code to accomplish what I need? Any guidance is appreciated, thank you!
Hello Andrew,
What navigation type are you using?
If you are using the load more button, then you need to edit the file :
wp-content/themes/thefox/functions/ajax-handlers.php
If you are not using the loading button you need to edit the file :
wp-content/themes/thefox/functions/rd_shortcodes/rd_staff_posts.php
Do not hesitate to contact us if you have more questions.
Have a nice weekend!
Regards.
---------------------
Hosting we recommend ( Free SSL and CDN included in all plan ).
Speed up your site with Autoptimize
Test your site with GTmetrix and fix the issue to make it faster
How to Update your Theme
Thank you! I currently have it set to "No Navigation", so I assume then it would be in this file: wp-content/themes/thefox/functions/rd_shortcodes/rd_staff_posts.php correct?
Any additional guidance you can give as to which specific line(s) need to be edited would be greatly appreciated, thanks again!
Hello Andrew,
You would need to create a totally new function if you want to order by the last name ( so the second word of the title ) and then change the query option.
All the default query options are already available from the module so you would need to add your custom function.
Regards
---------------------
Hosting we recommend ( Free SSL and CDN included in all plan ).
Speed up your site with Autoptimize
Test your site with GTmetrix and fix the issue to make it faster
How to Update your Theme