AI助手支持GPT4.0
These must be in function.php in the theme for the plugin to work for thumbnail and excerpt:
这些必须在主题的function.php中,插件才能使用缩略图和摘录: p>
add_theme_support( ‘post-thumbnails’ );
add_theme_support(‘缩略图’’); p>
set_post_thumbnail_size( form_option(‘thumbnail_size_w&&echo=false’), form_option(‘thumbnail_size_h&&echo=false’), true );
set_post_thumbnail_size(form_option('thumbnail_size_w && echo = false'),form_option('thumbnail_size_h && echo = false',true); p>
function custom_excerpt_length( $length ) {
function custom_excerpt_length($ length){
return 20;
返回20;
}
add_filter( ‘excerpt_length’, ‘custom_excerpt_length’, 999 );
add_filter('excerpt_length','custom_excerpt_length',999);
function custom_excerpt_more( $more ) {
函数custom_excerpt_more($ more){
return ”;
返回”;
add_filter( ‘excerpt_more’, ‘custom_excerpt_more’ );
add_filter('excerpt_more','custom_excerpt_more'); p>
You’ll also need to add thumbnails to the posts you want visible in the list.
您还需要向要在列表中显示的帖子添加缩略图。 p>
After that, all you need to do is to add the hook [getcatlist 1] (where 1 is a categoy id) to your post.
在那之后,您要做的就是将钩子[getcatlist 1](其中1是类别ID)添加到帖子中。 p>
This section describes how to install the plugin and get it working.
本节介绍如何安装插件并使其正常工作。 p>
add_theme_support(‘缩略图’);
set_post_thumbnail_size(form_option('thumbnail_size_w && echo = false'),form_option('thumbnail_size_h && echo = false'),true); li>
Example: [getcatlist 3]
示例:[getcatlist 3] li>
ol>
原文出处:http://www.sanshu.cn/a/6612.html
群主管理都是支付大佬