[wp-trac] [WordPress Trac] #7547: Filter news on templates cant work
WordPress Trac
wp-trac at lists.automattic.com
Tue Aug 19 13:12:08 GMT 2008
#7547: Filter news on templates cant work
-----------------------+----------------------------------------------------
Reporter: tandilboy | Owner: anonymous
Type: defect | Status: new
Priority: high | Milestone: 2.6.2
Component: General | Version: 2.6.1
Severity: blocker | Keywords:
-----------------------+----------------------------------------------------
i using a code to filter news on sidebar. on 2.5 series works well, but in
2.6.1 cant works. any fix? heres is the template code
{{{
<table cellpadding="0" cellspacing="0" id="AutoNumber44" >
<tr>
<td style="width: 519px; text-align: left; background-color:
#e3e3e3; border-width: thin; vertical-align: bottom;">
<?php
global $post;
$myposts = get_posts('numberposts=1&offset=0&category=24');
foreach($myposts as $post) :
setup_postdata($post);
?>
<img src="<?php bloginfo('stylesheet_directory');
?>/images/alerta.gif" alt="Destacada" /><a href="<?php the_permalink();
?>"><?php the_title(); ?></a>
<?php endforeach; ?>
</td>
</tr>
</table>
}}}
--
Ticket URL: <http://trac.wordpress.org/ticket/7547>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list