Skip to content

Error in term meta condition type docs #47

Open
@Jakob-Maudience

Description

@Jakob-Maudience

post_meta container is used in example where term_meta should be used

// Display container on Book Category taxonomy
Container::make( 'post_meta', __( 'Book Category Data' ) )
    ->where( 'term_taxonomy', '=', 'crb_book_category' )
    ->add_fields( array( .. ) );

Should be

// Display container on Book Category taxonomy
Container::make( 'term_meta', __( 'Book Category Data' ) )
    ->where( 'term_taxonomy', '=', 'crb_book_category' )
    ->add_fields( array( .. ) );

https://docs.carbonfields.net/#/containers/condition-types?id=term_meta-conditions

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions