Support » Fixing WordPress » Custom Page Template Problem

  • Resolved berfarah


    Back in 2.3.3 I was running the same custom page templates I am running now. I made a php code that overrode the page itself, and simply displays the latest posts of a single category. Now, instead of doing this, it just displays the actual page and changes nothing… What am I doing wrong?

    Code relevant to my problem:


    <?php get_header();?>
    <?php get_sidebar(); ?>

    <?php if (have_posts()) : ?>

    <div class=”body”>

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

    <h2 style=”clear:left;” id=”post-<?php the_ID(); ?>”>” rel=”bookmark” title=”Permanent Link to <?php the_title(); ?>”><?php the_title(); ?></h2>
    <div style=”float: left;”><small><?php the_time(‘M d Y’); ?></small></div>

    <div class=”entry”>

    <?php the_content(‘Read the rest of this entry »’); ?>

    <small><?php edit_post_link(‘Edit’); ?></small>


    <?php endwhile; ?>

    <?php else : ?>

    <h2 class=”center”>Oops – Not Found</h2>

    <p class=”center”><?php _e(“Sorry, whatever you’re searching for isn’t on this site. Try varying your search terms in the search function above.”); ?></p>

    <?php endif; ?>

Viewing 1 replies (of 1 total)
  • Anyone? :/
    I don’t like bumping, but it’s been a couple of hours…

    nvm, resolved – after screwing around with the code for about an hour ^^

Viewing 1 replies (of 1 total)
  • The topic ‘Custom Page Template Problem’ is closed to new replies.