thoughtis / cata-co-authors-plus

Common functions, configuration and compatibility fixes for Co-Authors Plus when used in Cata child themes. Not a fork or replacement for CAP.
GNU General Public License v3.0
0 stars 0 forks source link

Issue#35/block editor for valid guest authors #36

Closed douglas-johnson closed 1 year ago

douglas-johnson commented 1 year ago

Related Issues

What Was Accomplished

How It Was Tested

How To Test

Available for testing using the tagged version 0.6.0-beta5

Default State

Block Editor Opt In

Add add_action( 'cata_cap_use_block_editor', '__return_true' ); to the theme's functions file

Ouputting content

if ( cata_cap_queried_coauthor_has_post_content() ) {
    $query = new WP_Query(
        array(
            'p'         => $author->ID,
            'post_type' => 'guest-author',
        )
    );
    if ( $query->have_posts() ) {
        while ( $query->have_posts() ) {
            $query->the_post();
            the_content();
        }
    }
}
wp_reset_postdata();

Open Questions

jessica-townsend commented 1 year ago
  • Should the filter in the plugin be higher?

I feel like it would be a good idea to make the priority on the plugin filter higher. One less thing to think about when developing themes.