/** * Prints HTML with meta information for the categories, tags and comments. */ function dyad_entry_meta() { // Hide category and tag text for pages. if ('post' == get_post_type()) { /* translators: used between list items, there is a space after the comma */ $categories_list = get_the_category_list(esc_html__(', ', 'dyad')); if ($categories_list && dyad_categorized_blog()) { echo '<span class="cat-links">' . $categories_list . '</span>'; // WPCS: XSS OK. } } }
esc_html_e('It looks like nothing was found at this location. Maybe try one of the links below or a search?', 'dyad'); ?> </p> <?php get_search_form(); ?> <div class="error404-widgets"> <?php the_widget('WP_Widget_Recent_Posts', 'number=10', 'before_title=<h2 class="widget-title">'); ?> <?php if (dyad_categorized_blog()) { // Only show the widget if site has multiple categories. ?> <div class="widget widget_categories"> <h2 class="widget-title"><?php esc_html_e('Most Used Categories', 'dyad'); ?> </h2> <ul> <?php wp_list_categories(array('orderby' => 'count', 'order' => 'DESC', 'show_count' => 1, 'title_li' => '', 'number' => 10)); ?> </ul> </div><!-- .widget --> <?php }