Linux 软件免费装

Pop! Popular Posts for WordPress

开发者 JuanJedi
codigonexo
更新时间 2013年4月22日 19:20
捐献地址: 去捐款
PHP版本: 3.5 及以上
WordPress版本: 3.5.1
版权: GPLv2 or later
版权网址: 版权信息

标签

Posts Custom Post Types Popular Posts Popular Popular Custom Post Types codigonexo juanjedi

下载

详情介绍:

Pop! Popular Posts for WordPress provides you a way to show your most visited posts, pages, or custom types, using a Widget. Every time that one visitor loads a post, your database will update the count for that post +1. That information can be shown within a Widget, that allows you to set how many entries do you want to show in the list, the post type to show, and show or hide the views count. If you are a developer, and want to recover the popular posts into your theme/plugin, you can use the function "pop_get_popular_posts($num,$type,$order)", where $num is the number of posts you want (default: 5), $type is the post type (default: post), and $order can be "DESC" for a descendant list, or "ASC" for an ascendant list. This function returns an Array of WP_Post Objects. Translations available:

安装:

  1. Upload the directory to the /wp-content/plugins/ directory.
  2. Activate the plugin through the 'Plugins' menu in WordPress

屏幕截图:

  • The Widget Form
  • Popular Posts list.

常见问题:

How it works?

The plugin saves the view data into the postmeta table in your WordPress database, under "pop_post_views" meta key.

I'm a theme designer or a plugin developer, how can I retrieve popular posts?

You can use the function "pop_get_popular_posts($num,$type,$order)", where $num is the number of posts you want (default: 5), $type is the post type (default: post), and $order can be "DESC" for a descendant list, or "ASC" for an ascendant list. This function returns an Array of WP_Post Objects, not a list. With the WP_Post Objects, you can use the usual WordPress functions to retrieve information about the Post.

Can I set more than one Widget in my sidebar?

Of course you can. You can set one Widget for Posts, another one for Pages, and many as you want for Custom Post Types, for example.

更新日志:

1.2 - 22/04/2013 1.1 - 11/03/2013 1.0 - 08/03/2013