[wordpress插件] Content Mixx内容混合

wordpress 插件 文章 2020-04-01 13:00 420 0 全屏看文

AI助手支持GPT4.0

评分
0
描述

This plugin retrieves one or more random post/page or both of them from your WordPress installation
    

此插件从您的WordPress安装中检索一个或多个随机帖子/页面或两者都
    

Arguments:
        

参数:
        

from (string)
            

来自(string)
            

– show only posts, or pages, or both
            

–仅显示帖子或页面,或仅显示两者
            

– possible values: post |

–可能的值:post |

page
        

页面
        

numberposts (integer)
            

数字帖子(整数)
            

– number of posts/pages to return
        

–要返回的帖子/页面数
        

categories (integers, separated by commas)
            

类别(整数,用逗号分隔)
            

– limits returned posts to posts filed under categories found in arguments
        

–将返回的帖子限制为在自变量中找到的类别下提交的帖子
        

exclude (integers, separated by commas)
            

排除(整数,以逗号分隔)
            

– limits returned posts to posts NOT filed under categories found in arguments

–将返回的帖子限制为未归入自变量类别中的帖子

Sample Code:    

 示例代码:    

<?php    

$myposts = contentmixx( 'from=post&numberposts=2&categories=8' );    

$ myposts = contentmixx('from = post&numberposts = 2&categories = 8');    

foreach( $myposts as $post ) {        

foreach($ myposts as $ post){        

setup_postdata( $post );    

setup_postdata($ post);    

?>        

?>        

            

            

            

">Read More...

        

" id="post-">

https://github.com/bmsterling/Content-

请提交 https://github.com/bmsterling/Content-的所有错误或建议的改进

Mixx/issues

Mixx /问题

Need this plugin customized or need a plugin created, contact me via my contact form at http://kenzomedia.com

需要自定义此插件或需要创建插件,请通过以下联系方式与我联系: http://kenzomedia.com

Also available through twitter, @bmsterling

也可以通过Twitter @bmsterling获得

Credits

积分

Copyright 2007 Benjamin Sterling (http://benjaminsterling.com)

版权所有2007 Benjamin Sterling(http://benjaminsterling.com)

This program is free software;

该程序是免费软件;

you can redistribute it and/or modify

您可以重新分发和/或修改

it under the terms of the GNU General Public License as published by

根据
发布的GNU通用公共许可的条款进行

the Free Software Foundation;

自由软件基金会;

either version 2 of the License, or

许可的版本2或

(at your option) any later version.

(您可以选择)任何更高版本。

This program is distributed in the hope that it will be useful,

分发该程序是希望它会有用,

but WITHOUT ANY WARRANTY;

但没有任何保证;

without even the implied warranty of

甚至没有
的暗示保证

MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

特定目的的适销性或适用性。

See the GNU General Public License for more details:

有关更多详细信息,请参见GNU通用公共许可证:

http://www.gnu.org/licenses/gpl.txt

http://www.gnu.org/licenses/gpl.txt

安装步骤

    1. Unzip into your /wp-content/plugins/ directory.

    2. 解压缩到您的 / wp-content / plugins / 目录。

      If you’re uploading it make sure to upload the top-level folder.

      如果要上传,请确保上传顶级文件夹。

      Don’t just upload all the php files and put them in /wp-content/plugins/.

    3. 不要只是上传所有的php文件并将它们放在 / wp-content / plugins / 中。

    4. Activate the plugin through the ‘Plugins’ menu in WordPress
    5. 通过WordPress中的“插件”菜单激活插件

下载地址
https://downloads.wordpress.org/plugin/contentmixx.0.2.1.zip
-EOF-

AI助手支持GPT4.0