Thread: Wordpress
View Single Post
  #3 (permalink)  
Old 2004-06-25, 07:28 PM
Uzma Uzma is offline
Junior Member
 
Join Date: Dec 2003
Location: Earth!
Posts: 3
Uzma
Send a message via AIM to Uzma Send a message via MSN to Uzma
Default

Hi,
thank you so much for your reply.
here is the code:
Code:
<?php echo "<?xml version=\"1.0\" encoding=\"iso-8859-1\"?".">"; ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<?php /* Don't remove this line, it calls the WP function files ! */
$blog=1;
require_once("wp/wp-blog-header.php"); ?>
<? include("header.php") ?>
<!-- // loop start -->
<? giggle_autolink($html_string,-1,1); ?>
<?php foreach ($posts as $post) { start_wp(); ?>
<table width="100%"><tr><td class="top">
<?php the_date("d.m.y","<b>","</b>"); ?></td></tr><tr>
   <td class="main"> 
    <?php the_content(); ?>
 <br />Plugs: <? comment_plugger(); ?> <br />
    <p align="right"><?php link_pages("<br />Pages: ","<br />","number") ?>
    <?php comments_popup_link("comments ?", "1 comment", "% comments") ?></p>
    <?php include ("wp/wp-comments.php"); ?>
    <p align="right"><a href="javascript: history.back(-1)">Turn back</a></p>
</td></tr></table><?php } ?></div>
</body>
</html>
Now when I go to my site: http://twinkle-stars.com/wp , I get an error which says:
Quote:
The XML page cannot be displayed
Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.


--------------------------------------------------------------------------------

Only one top level element is allowed in an XML document. Error processing resource 'http://twinkle-stars.com/wp'. Line 3, Position 2

Warning: main(wp/wp-blog-header.php): failed to open stream: No such file or directory in /home/twinkles/public_html/wp/index.php on line 5
Now I'm not sure where I messed up because I was trying to make it so each is in its own table.
Reply With Quote