آخر الأخبار
## Selecting Posts ##############################################################################
$POSTS_ = mysql_query("
SELECT `post_title`,`description`,`guid`
FROM `wp_posts`, `wp_term_relationships`, `wp_term_taxonomy`
WHERE `wp_posts`.`ID`=`wp_term_relationships`.`object_id`
AND `wp_term_relationships`.`term_taxonomy_id`=`wp_term_taxonomy`.`term_taxonomy_id`
AND `wp_term_taxonomy`.`taxonomy`='category'
AND `wp_term_taxonomy`.`term_taxonomy_id`=8
AND `wp_posts`.`post_title`<>''
AND `wp_posts`.`post_status`='publish'
ORDER BY `wp_term_relationships`.`object_id` DESC
Limit 0,5
");
$NoOfPosts = mysql_num_rows($POSTS_);
print"";
?>
- ";
while($my_POSTS_= mysql_fetch_array($POSTS_)){
print'
- '.$my_POSTS_["post_title"].' '; } print"
