Category page not loading
-
Hi. The category pages of my blog are not showing up. I didn’t make any recent change in the editor of theme or any code and hence not able to figure out the issue. Here’s the link– https://www.tradebrains.in/category/personal-finance/
Please help me out to resolve this issue. Thanks in advance. _Kritesh
The page I need help with: [log in to see the link]
-
Hello @kriteshabhishek
Can you please tell me which theme are you using?
Can you please check your theme category.php OR archive.php file?
Hi @anoopranawat I’m using Intact theme.
What exactly do I’ve to check in the archieve.php?
Hello @kriteshabhishek
I need to check the code of archive.php and category.php file.
Here is the code for archieve.php
(There’s no category.php page in the editor)<?php
/**
* The template for displaying Archive pages.
* Learn more: http://codex.wordpress.org/Template_Hierarchy
* @package intact
* by KeyDesign
*/
?><?php get_header(); ?>
<?php if ( have_posts() ) : ?>
<div id=”posts-content” class=”container” >
<?php if ($redux_ThemeTek[‘tek-blog-sidebar’]) { ?>
<div class=”col-xs-12 col-sm-12 col-md-9 col-lg-9″>
<?php } else { ?>
<div class=”col-xs-12 col-sm-12 col-md-12 col-lg-12″>
<?php } ?>
<?php
while (have_posts()) :
the_post();
?>
<div <?php post_class(‘section’); ?> id=”post-<?php the_ID(); ?>” >
” title=”<?php the_title_attribute(); ?>”><?php the_post_thumbnail(‘large’); ?>
” title=”<?php the_title_attribute(); ?>”><h2 class=”blog-single-title”><?php the_title(); ?></h2>
<div class=”entry-content”>
<?php if(has_excerpt()) : ?>
<?php the_excerpt(); ?>
<?php else : ?>
<div class=”page-content”><?php the_content(); ?></div>
<?php endif; ?>
</div>
<div class=”entry-meta”>
<?php if ( is_sticky() ) echo ‘<span class=”fa fa-thumb-tack”></span> Sticky <span class=”blog-separator”>|</span> ‘; ?>
<span class=”published”><span class=”fa fa-clock-o”></span>” title=”<?php the_title_attribute(); ?>”><?php the_time( get_option(‘date_format’) ); ?></span>
<span class=”author”><span class=”fa fa-keyboard-o”></span><?php the_author_posts_link(); ?></span>
<span class=”blog-label”><span class=”fa fa-folder-open-o”></span><?php the_category(‘, ‘); ?></span>
<span class=”comment-count”><span class=”fa fa-comment-o”></span><?php comments_popup_link( esc_html__(‘No comments yet’, ‘intact’), esc_html__(‘1 comment’, ‘intact’), esc_html__(‘% comments’, ‘intact’) ); ?></span>
</div>
</div>
<?php endwhile; ?>
<?php the_posts_pagination( array(‘mid_size’ => 1,’prev_text’ => esc_html__( ‘Previous’, ‘intact’ ),’next_text’ => esc_html__( ‘Next’, ‘intact’ ),) ); ?>
</div>
<?php if ($redux_ThemeTek[‘tek-blog-sidebar’]) { ?>
<div class=”col-xs-12 col-sm-12 col-md-3 col-lg-3″>
<?php get_sidebar(); ?>
</div>
<?php } ?>
</div>
<?php else : ?>
<div id=”posts-content” class=”container” >
<h2 class=”section-title”><?php esc_html_e( ‘Nothing Found’, ‘intact’ ); ?></h2>
<?php if ( is_home() && current_user_can( ‘publish_posts’ ) ) : ?>
<p><?php printf( esc_html__( ‘Ready to publish your first post?’, ‘intact’ ), esc_url( admin_url( ‘post-new.php’ ) ) ); ?></p>
<?php elseif ( is_search() ) : ?>
<p><?php esc_html_e( ‘Sorry, but nothing matched your search terms. Please try again using different keywords.’, ‘intact’ ); ?></p>
<?php get_search_form(); ?>
<?php else : ?>
<p><?php esc_html_e( ‘It seems we can’t find what you’re looking for. Perhaps searching can help.’, ‘intact’ ); ?></p>
<?php get_search_form(); ?>
<?php endif; ?>
</div>
<?php endif; ?>
<?php get_footer(); ?>Hello @kriteshabhishek
If possible please go to the root section and open wp-config.php file. Please set WP_DEBUG true:
define('WP_DEBUG', true);
I think something is wrong with this file.
Hello @kriteshabhishek
Please share the screenshot of your theme archive.php file.
Sure. Here are the screenshots — https://goo.gl/meZDtn
Hello @kriteshabhishek
If possible please go to the root section and open wp-config.php file. Please set WP_DEBUG true:
define('WP_DEBUG', true);
Hello @kriteshabhishek
To debug this issue we will go step by step
1) First we will check any error (if) with
WP_DEBUG
2) Just take the backup of this file and remove all the code b/w<?php get_header(); ?> ---- <?php get_footer(); ?>
3) If everything fine ie you are able to see the header and footer of the website then we will try next step.
NOTE: If you are using any cache plugin, please deactivate that plugin for some time
Hi @anoopranawat. I tried adding define(‘WP_DEBUG’, true); in the wp-config.php file. It didn’t solved the issue.
Hello @kriteshabhishek
Just take the backup of this file and remove all the code b/w
<?php get_header(); ?>
—-
<?php get_footer(); ?>Hello @kriteshabhishek
Any updates?
Hi !anoopranawat Sorry, I am not an expert developer and just know the basics. The steps that you asked need technical knowledge and I don’t want to mess up my site by taking some wrong steps, in case I did something wrong. It would be easier if you can let me know some other simple method or if you want I can share you the code files so that you can go through it. The issue is still not solved!!
- The topic ‘Category page not loading’ is closed to new replies.