Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in term meta condition type docs #47

Open
Jakob-Maudience opened this issue Jun 27, 2019 · 0 comments
Open

Error in term meta condition type docs #47

Jakob-Maudience opened this issue Jun 27, 2019 · 0 comments

Comments

@Jakob-Maudience
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant