• 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 &raquo;</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 &raquo;</p>'); ?>

    Any idea what I might be doing wrong?

Viewing 4 replies - 1 through 4 (of 4 total)
  • 1. Don’t post code here – nobody reads it.
    2. Use a pastebin service, like https://wordpress.pastebin.ca
    3. I am trying to modify the posts of the Anaconda template. – modify what?
    Don’t ask “techie” questions, usually they are useless. Just describe clearly what you want to achieve.

    If you want to modify posts, why are you messing with the Page template?

    Thread Starter infonote

    (@infonote)

    Thanks for the reply.

    I meant post not page.

    What I want to do is modify how the post is presented. I use Talkr to provide a voice post of my content.

    The extension places it at the bottom of the post. I want to make it appear near title.

    BTW. Thanks for pastebin, never heard of it b4.

    Read again what I posted and consider this line in your post:
    I am using the Page.php (Page Template)
    I repeat: the Page template has NOTHING to do with the posts.
    Leave it alone!
    Read this to learn which template is used for what:
    Template_Hierarchy

    infonote: Get my talkr plugin from https://sstern.ccim.com/misc/software

    Edit the .php file and change it so instead of saying

    $parm=$parm.$lotsofstuffhere

    it says

    $parm=$logsofstuffhere.$parm

    You may need to tweak a bit to get the link exactly where you want it.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Anaconda Theme – Single Posts’ is closed to new replies.