
建站基础
建站基础知识建站基础知识建站基础知识建站基础知识建站基础知识建站基础知识建站基础知识建站基础知识建站基础知识
最新博文
-
search
/"> 页面由category复制即可...
wordpress2022-04-10
阅读更多 -
WP_query
have_posts() ) { // 通过查询的结果,开始主循环 while ( $query-have_posts() ) { $query-the_post(); // Contents of the queried post results go here. } } // 重置请求数据wp_reset_postdata(); ?...
wordpress2022-04-08
阅读更多 -
category
category...
wordpress2022-04-06
阅读更多 -
子分类的页面使用父级分类模板进行渲染
/* * 使子分类的页面使用父级分类模板进行渲染 */ function category_template($template){ $category = get_queried_object(); if($category-parent !=0){ while($category-parent !=0){ $category = get_category($category-parent); }...
wordpress2022-04-06
阅读更多 -
single文件
上下文章: ?php previous_post_link(%link); ? ?php next_post_link(%link); ?...
wordpress2022-04-03
阅读更多 -
各个页面的判断
common页 content页 if( $id == 126){ }...
公司模组2022-03-28
阅读更多 -
第七批空间需要加的,必须放在底部
# php -- BEGIN cPanel-generated handler, do not edit # Set the ea-php56 package as the default PHP programming language. IfModule mime_module AddHandler application/x-httpd-ea-php56___lsphp .php .php5 .phtml /IfModule # php -- END cPanel-ge...
公司模组2022-02-17
阅读更多 -
判断分类是否是顶级分类
?php $a = get_ancestors($cat,category ); if($a[0]){ ? ?php single_cat_title(); ??php echo get_cat_name(get_category_root_id($cat)); ? ?php }else{ ? ?php single_cat_title(); ? ?php } ?...
wordpress2022-02-10
阅读更多 -
新空间关键字页不跳转怎么办
修改index.php大约第57行: redirect(/) ;...
公司模组2022-01-26
阅读更多 -
数据库
define(DB_HOST,localhost); define(DB_USER,jinxiang); define(DB_PASS,123456); define(DB_NAME,jinxiang); $conn = @mysql_connect(DB_HOST,DB_USER,DB_PASS) or die(連接失敗,錯誤信息.mysql_error()); mysql_select_db(DB_NAME,$conn) or die(數...
PHP2022-01-06
阅读更多