Hot answers tagged

1

You can wrap it in the same check used for $category: <?php if (isset($term->term_id)) { echo '<a href="'.get_term_link($term).'">'.$term->name.'</a>'; } ?> or check to make sure it is not an error object: <?php if (!is_wp_error($term)) { echo '<a href="'.get_term_link($term).'">'.$term->name.'</a>'; } ...


1

You have to take two scenarios into account because they behave little differently. Copy both of these code blocks to your functions.php file. Code about errors is below, make sure to read comments. 1. Login failed - username and password was provided but something was incorrect add_action( 'wp_login_failed', 'login_failed_wrong_data' ); function ...



Only top voted, non community-wiki answers of a minimum length are eligible