guidotti
Forum Replies Created
Viewing 3 replies - 1 through 3 (of 3 total)
-
Forum: Fixing WordPress
In reply to: category, author, archives and tags not loopingEep! that is great! That query is an unnecessary bit, which I’ve removed, placing the site it working order. If it does become necessary I’ll use the conditional bit as you suggested. Thank you so much for taking the time!
Forum: Fixing WordPress
In reply to: category, author, archives and tags not loopingHere is the full index.php, thanks for your help. https://pastebin.com/UXmkPaYJ
Forum: Fixing WordPress
In reply to: category, author, archives and tags not loopingthe theme does not have an archive.php in the index.php there is a query for archive
<?php get_header(); global $more; ?> <div class="container"> <div class="page-title"> <?php if(is_search()) { ?> <h2><?php /* Search Count */ $allsearch = &new WP_Query("s=$s&showposts=-1"); $count = $allsearch->post_count; echo $count . ' '; wp_reset_query(); ?><?php _e('Search results for','slate'); ?> "<?php the_search_query() ?>" </h2> <?php } else if(is_tag()) { ?> <h2><?php _e('Tag','slate'); ?>: <?php single_tag_title(); ?></h2> <?php } else if(is_day()) { ?> <h2> <?php _e('Archive','slate'); ?>: <?php echo get_the_date(); ?></h2> <?php } else if(is_month()) { ?> <h2><?php _e('Archive','slate'); ?>: <?php echo get_the_date('F Y'); ?></h2> <?php } else if(is_year()) { ?> <h2><?php _e('Archive','slate'); ?>: <?php echo get_the_date('Y'); ?></h2> <?php } else if(is_404()) { ?> <h2><?php _e('404 - Page Note Found','slate'); ?></h2> <?php } else if(is_category()) { ?> <h2><?php _e('Category','slate'); ?>: <?php single_cat_title(); ?></h2> <?php } else if(is_author()) { ?> <h2><?php _e('Posts by Author','slate'); ?>: <?php the_author_posts(); ?> <?php _e('posts by','slate'); ?> <?php $curauth = (isset($_GET['author_name'])) ? get_user_by('slug', $author_name) : get_userdata(intval($author)); echo $curauth->nickname; ?></h2> <?php } ?> </div>
Viewing 3 replies - 1 through 3 (of 3 total)