wordpress单篇文章模板代码




		
 
slug.">".$categories[0]->cat_name."";?>
ID); foreach ($tags as $tag ) { $keywords = $keywords.$tag->name. " "; }; if($keywords!="") { echo "关键词:".$keywords; } ?>

文章来自IT部落格,http://www.itbuluoge.com,版权所有,转载请注明出处!

0

相关列表

    slug; $result = $wpdb->get_results("SELECT wp_posts.`ID`,wp_posts.`post_title` FROM wp_posts,wp_terms,wp_term_relationships WHERE wp_terms.`term_id`=wp_term_relationships.`term_taxonomy_id` AND wp_posts.`ID`=wp_term_relationships.`object_id` AND wp_terms.`slug`='$slug' AND wp_posts.`post_status`='publish' ORDER BY wp_posts.`post_date` LIMIT 5"); foreach ($result as $post) { setup_postdata($post); $postid = $post->ID; $title = $post->post_title; ?>

最新文章

    get_results("SELECT ID,post_title FROM $wpdb->posts where post_status='publish' ORDER BY post_date DESC LIMIT 5"); foreach ($result as $post) { setup_postdata($post); $postid = $post->ID; $title = $post->post_title; ?>
    get_results("SELECT * FROM wp_comments,wp_users WHERE wp_comments.`user_id`=wp_users.`ID` AND wp_comments.`comment_post_ID`=".$currenid." order by wp_comments.comment_date desc limit 10"); foreach ($results as $result) { ?>
  • 评论就可以获得金币哦!

    comment_content;?>

    user_nicename;?>

    comment_date;?>

不登陆也可以评论,但是登录后评论就能获得金币哦!
IT部落格(http://www.itbuluoge.com)-快乐快速学习,专注于免费编程教程,在线编程,IT面试笔记,IT面试经验

你可能感兴趣的:(python/php/perl)