Support

Home Forums Event Espresso Premium People Add on – Display multiple people type on a single page

People Add on – Display multiple people type on a single page

Posted: April 13, 2017 at 9:38 pm

Viewing 2 reply threads


gpahu

April 13, 2017 at 9:38 pm

Evening all,

So I am using the people add on. I have a people type “Board of Directors” and a people type “Executive” and I want to display both on one page with Executive coming first on the page and then the Board of Directors.

What is the best way to go about this ?

The people who are on the Executive are part of the Board of Directors so I am open to “sorting ” the people type Board of Directors by excerpt (thats where I placed their TITLE) or adding a custom field Title to people and if it exists sorting by that field.

FYI – I have added a filter to functions.php to sort by last name

Thanks in advance
Steph


Josh

  • Support Staff

April 14, 2017 at 10:21 am

Hi Steph,

I’d recommend using a custom page template, and you can use the code from this gist for the page template’s loop:

https://gist.github.com/joshfeck/3e2327997531609e65bd51f01abf6e13


gpahu

April 18, 2017 at 3:16 pm

Thanks a million Josh, your code was really helpful
As an FYI for others, I created a custom template taxonomy_espresso_people_type-board-of-directors (board-of-directors is the name of my people type).
I basically restarted the loop when the people type ID was not the people type I wanted to include. I also added a ‘posts_per_page’ => ‘-1’, to get all of the people on the one page.
Heres the gist:
https://gist.github.com/henihan/5c8be0bd92de7b361a1b2e9a1ab15d0e
Hope this helps
Thanks,
Steph

Viewing 2 reply threads

The support post ‘People Add on – Display multiple people type on a single page’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso