Fatal error?
-
ever since i updated my WP, it’s been actin funky. now my categories don’t work. this comes up:
Fatal error: Call to undefined function the_post_id() in /data/18/1/17/153/1832479/user/1988023/htdocs/risheleonlineblog/wp-content/themes/music/archive.php on line 46
_______________________
and heres: line 46….
<?php if (is_category()) { ?> <div class="indent" align="left"> <h2 align="left"><?php single_cat_title(); ?></h2> <ul class="news-list"> <?php while (have_posts()) : the_post(); ?> <?php //the_ID(); ?><?php //the_title(); ?><?php //the_permalink() ?> <?php $sql=mysql_query("select * from wp_posts where ID='".the_post_ID()."'"); $row = mysql_fetch_array($sql); $sqlimg = mysql_fetch_array(mysql_query("select guid from wp_posts where post_parent = '".the_post_ID()."' and post_type='attachment'")); ?> <li> <? if($sqlimg['guid'] !=""){?><img alt="" src="<?php print $sqlimg['guid']?>" width="194" height="171" /><? }?> <h4><?=date("D, M d, H:i",strtotime($row['post_date']))?><br /> <a href="<?php print bloginfo('url')?>/?page_id=<?=$row['ID']?>"><?=$row['post_title']?></a></h4> <p> <div><?php //print substr(strip_tags($row['post_content'],'<p><div><b><strong>'),0,180)?> <?php the_content_homepage(); ?> </div>
https://risheleonline.com is the site
Viewing 10 replies - 1 through 10 (of 10 total)
Viewing 10 replies - 1 through 10 (of 10 total)
- The topic ‘Fatal error?’ is closed to new replies.