WordPress.org

Ready to get started?Download WordPress

Forums

Page Template Stopped Working After Update (5 posts)

  1. Chrisber
    Member
    Posted 1 year ago #

    I have a site that has been functioning flawlessly for 3 years that has suddenly stopped working. It uses a custom page template to display a full width event calendar without a sidebar. For some reason, the page template is no longer being recognized. Instead of the full width calendar, I still get the calendar plus sidebar. The template does appear in the dropdown if I try to edit the page, but it does not take effect. The page is calling the page.php or index.php instead of the correct template. I'm not sure exactly when this happened, but I believe it was after updating to 3.5.1

    Take a look at http://brbcva.org/calendar

  2. esmi
    Forum Moderator
    Posted 1 year ago #

    It sounds like there's a problem with your custom page template. as this is a custom theme, have you tried contacting the theme's original developer about this?

  3. Chrisber
    Member
    Posted 1 year ago #

    It is a custom theme that I created myself and it worked perfectly for several years before it stopped working. I've tried everything I can think of to correct it.

    <?php
    /*
    Template Name: Calendar-Page
    */
    ?>
    
    <?php get_header(); ?>
    <div id="content">
    <div id="post-content-wide">
    <div class="post-wide">
    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
     <h2><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h2>
     <?php the_content(__('Read more'));?>
     <?php cgm_event_calendar(); ?>
    
    <?php endwhile; else: ?>
      <p><strong>There has been a glitch in the Matrix.</strong><br />
      There is nothing to see here.</p>
      <p>Please try somewhere else.</p>
    <?php endif; ?>
    
    </div> <!-- end .post-wide -->
    </div> <!-- end #post-content-wide -->
    
    </div> <!-- end #content -->
    <?php get_footer(); ?>
  4. esmi
    Forum Moderator
    Posted 1 year ago #

    Try checking your site's error logs for a more specific error message. In the meantime, try uploading a fresh copy of that template file.

  5. Chrisber
    Member
    Posted 1 year ago #

    Nothing in the error logs. Uploaded fresh copy of template file and the same problem persists.

Topic Closed

This topic has been closed to new replies.

About this Topic