Remove “Category:”, “Tag:”, “Author:” from the_archive_title

You can extend the get_the_archive_title filter which I’ve mentioned in this answer add_filter(‘get_the_archive_title’, function ($title) { if (is_category()) { $title = single_cat_title(”, false); } elseif (is_tag()) { $title = single_tag_title(”, false); } elseif (is_author()) { $title=”<span class=”vcard”>” . get_the_author() . ‘</span>’; } elseif (is_tax()) { //for custom post types $title = sprintf(__(‘%1$s’), single_term_title(”, false)); } … Read more

Between functions.php (theme), widgets, and plugins, which is loaded first?

The plugins are loaded right before theme (yes, I’ve been looking for excuse to use this): However it is wrong to think about either as point of code execution. For most cases everything should be hooked and executed no earlier than init hook. According to Codex widget registration with register_widget() should be hooked to widget_init. … Read more

error code: 521