Footer and Posts No Show
-
Hi All,
so I know that this works on my other custom themes but for some reason not on this one… http://beta.accesstaxaccounting.com/ata-resources-and-help/ata-blog/
In My index.php I have this….
<?php/* Template Name: Index page */ ?> <?php get_header(); ?> <div id="page-wrapper"> <main role="main"> <section id="blogpage-article"> <section id="blog-post-articles"> <?php $paged = ( get_query_var( 'paged' ) ) ? get_query_var( 'paged' ) : 1; $args = array( 'posts_per_page' => 6, 'paged' => $paged ); $custom_query = new WP_Query( $args ); ?> <?php get_template_part('loop'); ?> <div class="clearfix"></div> </section> <section id="blog-pagination"> <?php if (function_exists("pagination")) { pagination($custom_query->max_num_pages); } ?> </section> </section> <div class="clearfix"></div> </main> </div> <?php get_footer(); ?>My loop.php is this….
<?php if (have_posts()) : while (have_posts()) : the_post(); ?> <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> <?php if (has_post_thmbnail()) : ?> <a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"> <?php the_post_thumbnail('bloglanding_post_thumbnail'); ?> </a> <?php endif; ?> <h2> <a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a> </h2> <?php the_excerpt(); ?> <a href="<?php the_permalink(); ?>" class="blog-btn">READ MORE...</a> </article> <?PHP endwhile; ?> <?php else: ?> <article> <h2><?php _e("Sorry, nothing to display.", "atacustom"); ?></h2> </article> <?php endif; ?>As you can see from that page the footer is not showing up and none of the six basic blog posts are not showing either whatsoever! I have double and triple checked the code multiple times again themes I have built in the past and all is the same there! Am at a Loss. Many thanks
Phillip Dews
-
Your site just stops, so I suspect an error someplace, probably a PHP coding error.
Errors like this are logged. Check the error log on your server. If you can’t find the log, please contact your host.
Meantime, enable wp_debug and wp_debug_log and after an error, look at wp-content/debug.log to see if anything gets logged there. https://codex.wordpress.org/Debugging_in_WordPress
You can also try this: Please attempt to disable all plugins, and use one of the default (Twenty*) themes. If the problem goes away, enable them one by one to identify the source of your troubles. http://www.wpbeginner.com/plugins/how-to-deactivate-all-plugins-when-not-able-to-access-wp-admin/
Hi Steve,
Yep you was right, the debug helped fella, I got this..
Stay Social →
Access Tax & Accounting
0800 302 9300
care@accesstaxaccounting.comHow ATA Helps You
Where Can We Help You?
Benefits of Using Your PSC abroad
Limited Company Services
Recruitment Agency Services
ATA Resources and Help ▾Blog Posts
Our blog is a collection of the latest news, information and more relating to ATA but also the wider world relevant to our clients.
Fatal error: Call to undefined function has_post_thmbnail() in C:\xampp\htdocs\beta.accesstaxaccounting\wp-content\themes\atacustom\loop.php on line 3
Silly little typo it seems all working now as you can see http://beta.accesstaxaccounting.com/ata-resources-and-help/ata-blog/
just goto tweak the styling and can finish!
Thanks againPhillip
Always a good idea to have WP_DEBUG enabled while developing because the fingers sometimes go off on their own when you’re coding.
The topic ‘Footer and Posts No Show’ is closed to new replies.