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

Ошибка при экспорте товаров #56

Closed
Tracked by #53
evgrezanov opened this issue Jan 9, 2024 · 1 comment
Closed
Tracked by #53

Ошибка при экспорте товаров #56

evgrezanov opened this issue Jan 9, 2024 · 1 comment
Assignees
Labels
bug Something isn't working
Milestone

Comments

@evgrezanov
Copy link
Owner

No description provided.

@evgrezanov evgrezanov self-assigned this Jan 9, 2024
@evgrezanov evgrezanov added the bug Something isn't working label Jan 9, 2024
@evgrezanov
Copy link
Owner Author

evgrezanov commented Jan 9, 2024

photo_2567-01-09 18 02 35

добавить проверку того что возвращает get_the_terms - если false или WP_Error - не склеивать массивы

$cur_terms = get_the_terms( 10, 'my_tax' ); if( is_array( $cur_terms ) ){ foreach( $cur_terms as $cur_term ){ echo '<a href="'. get_term_link( $cur_term->term_id, $cur_term->taxonomy ) .'">'. $cur_term->name .'</a>,'; } }

evgrezanov added a commit that referenced this issue Jan 13, 2024
@evgrezanov evgrezanov added this to the 2.8 milestone Feb 8, 2024
@evgrezanov evgrezanov mentioned this issue Feb 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Development

No branches or pull requests

1 participant