摘要: 1.在主题的functions.php文件夹中添加 // 自定义文章编辑器 $new_meta_boxes = array( "shoplink" => array( "name" => "shoplink", "std" => "", "title" => "商品链接:"), "jiage" => 阅读全文
posted @ 2020-03-18 20:23 venkim 阅读(622) 评论(0) 推荐(0) 编辑
摘要: <ul> <?php $post_tags=wp_get_post_tags($post->ID); //如果存在tag标签,列出tag相关文章 $pos=1; $rpls=3; $renum=stripslashes(get_option('related_post_num')); //文章数量 阅读全文
posted @ 2020-03-18 17:23 venkim 阅读(449) 评论(0) 推荐(0) 编辑
摘要: 在functions.php中添加以上代码 方法 一 function mt_highlight_keys( $text ) { if ( is_search() && !is_admin() ) { $s = trim( get_search_query() ); // 将字符串中的正斜杠替换为转 阅读全文
posted @ 2020-03-18 17:20 venkim 阅读(849) 评论(0) 推荐(0) 编辑
摘要: add_action('admin_init', 'php_search_ban_key'); function php_search_ban_key() { add_settings_field('php_search_key', '搜索关键词屏蔽', 'php_search_key_callba 阅读全文
posted @ 2020-03-18 07:21 venkim 阅读(394) 评论(0) 推荐(0) 编辑