• I’m getting the above error script on my website. This is my theme index.php script – does anything look glaringly obviously wrong?

    <?php get_header(); ?>
    
    <?php if ($posts) : foreach ($posts as $post) : start_wp(); ?><h1><?php the_time('jS F, Y') ?>: <a>">
    
    <?php the_title(); ?></a></h1><p class="posted">Spat by <?php the_author(); ?> at <?php the_time('g:i a'); ?> | Comment here! <image src=http://www.thesoulgirl.com/wp-content/themes/soulgirl/images/comment.jpg />
    
    <?php comments_popup_link(__('Comment (0)'), __('Comment (1)'), __('Comments (%)')); ?> 
    
    <?php edit_post_link(__(' | Edit this post?'),'',''); ?></p><?php the_content(); ?><img src="http://www.thesoulgirl.com/wp-content/uploads/2009/03/karenx.gif" align="left" />
    
    <script src="http://feeds2.feedburner.com/~s/BlogOfABarbedBimbo?i=<?php the_permalink() ?>" type="text/javascript" charset="utf-8"></script>
    
    <?php wp_link_pages(); ?><div class="navigation"><div class="alignleft"><?php previous_posts_link('« Newer Entries') ?></div>
    
    <div class="alignright"><?php next_posts_link('Older Entries »') ?></div>					</div>
    
    <?php comments_template(); // Get wp-comments.php template ?><?php endforeach; else: ?><p><?php _e('Sorry, no posts matched your criteria.'); ?></p><?php endif; ?></div>
    
    <?php get_footer(); ?>


    [Please use the code buttons when posting code – as is, your code may have been corrupted]

Viewing 7 replies - 1 through 7 (of 7 total)
  • Yeah, that’s so old I’ve never seen that kind of loop. Here’s the correct loop code (just the start);

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

    Take a read up on the loop, it’s a good page http://codex.wordpress.org/The_Loop

    @thesoulgirl: That’s an ancient theme; try http://www.geek-goddess.co.uk/themes/ where you got the theme for support. These forums are for themes available in the WordPress theme directory at wordpress.org/extend/themes/. See http://codex.wordpress.org/Forum_Welcome#Commercial_Products

    Thread Starter TheSoulgirl

    (@thesoulgirl)

    It may be ancient but it’s all mine 😀

    I did try dropping in the new code but it went wonky. It may be time to kill my old theme, swallow hard, and find a new one 🙁

    You can’t just drop in that code, you need the bits that go with it : )

    If the theme is that old it might be nice to get a new theme anyway? Something responsive and pretty ; )

    Thread Starter TheSoulgirl

    (@thesoulgirl)

    Bwaaaaaa, mine is pretty and was designed with me in mind. *gulp*…

    When I said I dropped in the new code I meant I used the snippets from the default theme and played around but I’m obviously not very codey 🙂

    Well, there’s plenty of good themes out there, or get one made for you. You could get someone to take all the design and functionality of your current theme and move it to the newest WP version, that way you’d see minimal difference but you’d be more secure and probably faster. WP has changed quite a lot over time, I think so anyway.

    Thread Starter TheSoulgirl

    (@thesoulgirl)

    This one was made for me. Looks like I’m gonna have to ‘pay again’ which grieves me! Thanks for all your help guys. x

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Notice: start_wp is deprecated since version 1.5! Use new WordPress Loop instead’ is closed to new replies.