Hot answers tagged


Please look up before posting your questions ! There is a detailed answer available.


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>'; } ...


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 ...


Does wordpress have any built-in settings for doing this? Most likely your host will have an option on your cPanel for custom Error pages. Something along the lines of: If that is not the case, please have a look at this older question: How to create custom 401, 403 and 500 error pages? EDIT 1: Also at this one: ...

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