WP 1.5 Integration Question
-
Okay, I’m no good with WordPress. Lets just get that out in the open. However, you would think after going through the whole integration for the last version in January, I would be able to handle simply upgrading half a year later. Not quite.
I already have layouts for my website. (https://www.pink-starr.com/wordpress) All I want to do, is use The Loop to put wordpress inside the page. However, the new version has new Loops, and I don’t exactly know how to use them.
Lets start with my old code:
<?php
/* Don't remove this line. */
require('./wp-blog-header.php');
?>
<?php include ("/home/stpink/public_html/skins/cookiecheck.php");?> <? include($headervar.$extension); ?>
<?php if ($posts) : foreach ($posts as $post) : start_wp(); ?>
<?php endforeach; else: ?>
<p><?php _e('Sorry, no posts matched your criteria.'); ?></p>
<?php endif; ?>
<style type="css/text">
.meta {
font-size: .75em;
}
.meta li, ul.post-meta li {
display: inline;
}
.meta ul {
display: inline;
list-style: none;
margin: 0;
padding: 0;
}
.meta, .meta a {
color: #808080;
font-weight: normal;
letter-spacing: 0;
}
</style>
<?php if ($posts) : foreach ($posts as $post) : start_wp(); ?>
<?php the_date('','<h2>','</h2>'); ?>
<div class="post">
<h3 class="storytitle" id="post-<?php the_ID(); ?>"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link: <?php the_title(); ?>"><?php the_title(); ?></a></h3>
<div class="meta"><?php _e("Filed under:"); ?> <?php the_category() ?> a€?? <?php the_author() ?> @ <?php the_time() ?> <?php edit_post_link(); ?></div>
<div class="storycontent">
<?php the_content(); ?>
</div>
<div class="feedback">
<?php wp_link_pages(); ?>
<?php comments_popup_link(__('Comments (0)'), __('Comments (1)'), __('Comments (%)')); ?>
</div>
<!--
<?php trackback_rdf(); ?>
-->
<?php include(ABSPATH . 'wp-comments.php'); ?>
</div>
<?php endforeach; else: ?>
<p><?php _e('Sorry, no posts matched your criteria.'); ?></p>
<?php endif; ?>
<? include($footervar.$extension); ?>It has the header, footer, cookie check needed for my layout, and the other things needed for wordpress. When used, it has a bit of a problem.
So I tried taking out the old loop and puttin in a new one. I would post those up here, but I tried just about every loop on the site about the loop, and none seemed to work. I don’t know which loop to use. And I’m not sure if I’m even taking out the right things and putting the new things in the right place? Ahh, it’s a disaster.
I told you I was no good at this. :-/
Thanks for any help. ??
- The topic ‘WP 1.5 Integration Question’ is closed to new replies.