Anaconda Theme – Single Posts
-
Hi,
I am trying to modify the posts of the Anaconda template.
However, when I add code or text in the loop, nothing changes.
I am using the Page.php (Page Template)
https://anaconda.taragana.net/flexible-3-column-anaconda-theme-for-wordpress-released/
This is the original template.
<?php /* This file is Modified from K2 on 25th July 2006. */ ?> <?php get_header(); ?> <div id="content-wrap"> <div id="sidebar"> <?php include (TEMPLATEPATH . '/leftsidebar.php'); ?> </div> <div id="content"> <?php if (have_posts()) { while (have_posts()) { the_post(); ?> <div class="item"> <div class="pagetitle"> <h2 id="post-<?php the_ID(); ?>"><a href="<?php the_permalink() ?>" rel="bookmark" title='Permanent Link to "<?php the_title(); ?>"'><?php the_title(); ?></a></h2> <?php edit_post_link('<img src="'.get_bloginfo(template_directory).'/images/pencil.png" alt="Edit Link" />', '<span class="editlink">', '</span>'); ?> </div> <div class="itemtext"> <?php the_content('<p class="serif">Read the rest of this page »</p>'); ?> <?php link_pages('<p><strong>Pages:</strong> ', '</p>', 'number'); ?> </div> </div> <?php } ?> <?php /* If there is nothing to loop */ } else { $notfound = '1'; /* So we can tell the sidebar what to do */ ?> <div class="center"> <h2>Not Found</h2> </div> <div class="item"> <div class="itemtext"> <p>Oh no! You're looking for something which just isn't here! Fear not however, errors are to be expected, and luckily there are tools on the sidebar for you to use in your search for what you need.</p> </div> </div> <?php /* End Loop Init */ } ?> <div id="footer"> <?php get_footer(); ?> </div> </div> <div id="utility"> <?php get_sidebar(); ?> </div> </div> </div> </body> </html>
If I add test in between the loop, nothing happens.
<div id="content"> <?php if (have_posts()) { while (have_posts()) { the_post(); ?> <div class="item"> <div class="pagetitle"> <h2 id="post-<?php the_ID(); ?>"><a href="<?php the_permalink() ?>" rel="bookmark" title='Permanent Link to "<?php the_title(); ?>"'><?php the_title(); ?></a></h2> <?php edit_post_link('<img src="'.get_bloginfo(template_directory).'/images/pencil.png" alt="Edit Link" />', '<span class="editlink">', '</span>'); ?> </div> <div class="itemtext"> <?php the_content('<p class="serif">Read the rest of this page »</p>'); ?>
Any idea what I might be doing wrong?
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Anaconda Theme – Single Posts’ is closed to new replies.