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.