• Hi there,

    I am wondering how set some custom post types for authors of posts. I need to add some social links and a cover image (not profile one) and maybe more stuff. I do not want to use plugins for author box, we use Type calling it from pure PHP.

    BTW We love your plugin 🙂

    Best

    https://wordpress.org/plugins/types/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter lorenzo_pulpolab

    (@lorenzo_pulpolab)

    No one??

    I could use help with this too.

    I used this function before with another Custom Post Type plugin, and it worked – however it does not work with this plugin

    function custom_post_author_archive( &$query )
    {
    if ( $query->is_author )
    $query->set( ‘post_type’, array( ‘post’, ‘articles’, ‘premiumvideos’, ));
    remove_action( ‘pre_get_posts’, ‘custom_post_author_archive’ ); // run once!
    }
    add_action( ‘pre_get_posts’, ‘custom_post_author_archive’ );
    `

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Custom Types for Author.php’ is closed to new replies.