Tell me more ×
WordPress Answers is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

A long time ago I created a wordpress site for a local am-dram group at http://mersthamdrama.org.uk

I created a custom theme, and added some plugins to make it easy for editors to add Past Performances as what is effectively a custom post type (I used a plugin called Magic Fields at the time, as at that stage either native Custom Posts weren't available/didn't do what I needed/I hadn't discovered them!).

However I find that now, clicking on ANY of the monthly archive links, or individual blogpost permalinks displays just the blog index. I'm sure it used to work fine; presumably at some point some things got overwritten or a setting has changed, can anyone tell me what's up?

Archive.php below:

<?php
/**
 * @package WordPress
 * @subpackage Mads_Theme
 */

get_header(); ?>

    <div class="ImageBlock">
      <h5>
        <a href="http://mersthamdrama.org.uk/" class="body-item-link" title="permanent link">Our Latest Production</a>
      </h5>
      <img class="front-image" width="400" alt="Our Latest Production" src="http://mersthamdrama.org.uk/images/coarse-capers2.jpg" />
      <br />
      <p>Coarse Capers in performance at Merstham Village Hall</p>
    </div>
    <div class="page-title cushycms">
      <h2>News</h2>
    </div>
    <div class="body blog narrowcolumn" id="content" role="main">
                <?php query_posts("cat=-4,-5") ?>
                <?php if (have_posts()) : ?>

                  <?php while (have_posts()) : the_post(); ?>

                    <div class="post" id="post-<?php the_ID(); ?>">
                      <h5><a href="<?php the_permalink() ?>" class="body-item-link" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h5>
                      <p class="body-item-date"><?php the_time('F jS, Y') ?></p><br /> 

                      <div class="post-body">
                        <?php the_content('Read the rest of this entry &raquo;'); ?>
                      </div>
            <p class="body-item-author">posted by <?php the_author() ?> at <?php the_time('H:i') ?></p>

                    </div>
                  <?php endwhile; ?>

                  <div class="navigation">
                    <div class="alignleft"><?php next_posts_link('&laquo; Older Entries') ?></div>
                    <div class="alignright"><?php previous_posts_link('Newer Entries &raquo;') ?></div>
                  </div>

                <?php else : ?>

                  <h2 class="center">Not Found</h2>
                  <p class="center">Sorry, but you are looking for something that isn't here.</p>
                  <?php get_search_form(); ?>
                <?php endif; ?>
        <?php wp_reset_query(); ?>
                </div>
            <br />
      <div class="sidebar">
        <div class="panel" id="nav">
            <ul role="navigation">
              <li><h4 class="sidebar-title">Pages</h4>
              <a title="News" href="http://mersthamdrama.org.uk/">News</a>          
              <?php wp_list_pages('title_li=' ); ?>
              </li>
            </ul>
        </div>
        <div class="panel" id="archive">
        <ul role="navigation">
          <li><h4 class="sidebar-title">Archives</h4>
            <ul>
            <?php wp_get_archives('type=monthly'); ?>
            </ul>
          </li>

        </ul>
      </div>
      <?php get_a_post(160); ?>
    <div class="panel" id="about">
      <p class="panel-item">
        <?php the_content('Read the rest of this entry &raquo;'); ?>
      </p>
    </div>
<?php 
  include("sidefooter.htm");
?>
            </div>
        </div>
<?php
  include("suffix.htm");
?>

<?php/* get_sidebar(); */ ?> 

<?php /* get_footer(); */ ?> 
share|improve this question

closed as too localized by toscho Jul 20 '12 at 23:49

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, see the FAQ.

1 Answer

I suggest you create a child theme so any theme updates will NOT overwrite your custom coding http://wordpresssites.net/themes/how-to-make-your-own-child-theme-for-wordpress-beginners-guide/

share|improve this answer
This is a custom theme I've built, any theme updates would have been coded by by hand. (Or have I misunderstood you?) – fearoffours Nov 10 '11 at 10:25
1  
@fearoffours You haven't misunderstood. This "answer" is first off not catering to your question at all and second off SPAM - this user is promoting his own site. – Johannes Pille Nov 10 '11 at 13:08

Not the answer you're looking for? Browse other questions tagged or ask your own question.