Support

Home Forums Event Espresso Premium Published by for People

Published by for People

Posted: May 2, 2017 at 12:55 pm

Viewing 1 reply thread


commgladm

May 2, 2017 at 12:55 pm

On the Event pages I am able to change who it shows the Published by but I can’t find a way to do this for the People page. We are using the Admin people page for how they can get help and don’t want it linked to our web person.


Josh

  • Support Staff

May 2, 2017 at 2:02 pm

Hi there,

The support for the author box can be added by placing some code in a little plugin. Here’s the code:

add_filter( 'FHEE__EE_Register_CPTs__get_CPTs__cpts', 'ee_modify_supports_of_people_cpt' );
function ee_modify_supports_of_people_cpt( $cpt_registry_array ) {
    if ( isset( $cpt_registry_array['espresso_people'] ) ) {
        $cpt_registry_array['espresso_people']['args']['supports'] = array( 
            'title', 
            'editor', 
            'thumbnail', 
            'excerpt', 
            'custom-fields', 
            'comments',
            'author'
        );
    }
    return $cpt_registry_array;
}

You can add the above to a functions plugin or into your WordPress theme’s functions.php file.

We’ll probably add this in the next update of the people add-on because the author box should be there anyway. The above code will work for you in the interim.

Viewing 1 reply thread

The support post ‘Published by for People’ 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