Title: OneSpace Last Post
Author: igrossiter
Published: <strong>2013 年 5 月 22 日</strong>
Last modified: 2014 年 9 月 5 日

---

搜索插件

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://s.w.org/plugins/geopattern-icon/onespace-lastpost.svg)

# OneSpace Last Post

 作者：[igrossiter](https://profiles.wordpress.org/igrossiter/)

[下载](https://downloads.wordpress.org/plugin/onespace-lastpost.zip)

 * [详情](https://cn.wordpress.org/plugins/onespace-lastpost/#description)
 * [评价](https://cn.wordpress.org/plugins/onespace-lastpost/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/onespace-lastpost/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/onespace-lastpost/#developers)

 [支持](https://wordpress.org/support/plugin/onespace-lastpost/)

## 描述

Veja descrição em portugues em: http://onespace.com.br/lastpost/

This plugin provides you with a shortcode that returns the latest posts from specifics
categories or post_types, you can choose how many posts is to be show or what kind
of information you can get from posts.

Arguments:

 1. id – You can use any number of post categories ids separeted by commas
 2. num – the number of posts to return for wich categorie id
 3. info – this is where goes all the printing information

Info printing arguments:

 1. thumb: returns the post’s featured image, you must specify the width of the thumb
    after ‘:’, has a link to the post
 2. title: returns the title, has a link to the post
 3. excerpt: returns the first lines from you post you can specify the lenght of the
    text to show and a subtext. excerpt:LENGTH:SUB-TEXT, has a link to the post
 4. content: returns all content from post
 5. date: returns date of post publishing, you can specify the format after ‘:’

More about date:

Date format uses php default formating symbols, here goes some of then;

d: day of month
 m: month y: year

it has some limitations, you can’t use escape chars (yet).

check the manual to see the complete list: http://php.net/manual/en/function.date.
php

A few examples:

[os_lastpost id=”x,y,z” num=2 info=”title,date:d/m/y,thumb:130,excerpt:120: … veja
mais”]

returns the latest 2 posts from post categories x, y and z, printing the date on
Day/Month/Year, featured image 130 px of width, 120 chars from post content (html
stripped) and a custom text ” … veja mais” at the end.

[os_lastpost post_type=”custom_post_type” num=5 info=”title,excerpt”]

returns the latest 5 posts from a custom post type, printing title, and the first
60 chars from the post content and a default text ” … read more”

[os_lastpost post_type=”post” num=5 info=”title,content”]

returns the latest 5 posts from all your categories, printing title, and full content

### Arbitrary section

## 屏幕截图

 * [[
 * Plugin used on a post.
 * [[
 * Shortcode used.
 * [[
 * Plugin used on a widget, need additional plugin to make possible the use of shortcodes
   on widget.

## 安装

This section describes how to install the plugin and get it working.

e.g.

 1. Unzip and upload `os-lastpost` to the `/wp-content/plugins/` directory
 2. Activate the plugin through the ‘Plugins’ menu in WordPress
 3. Use the shortcode described on the description in your site
 4. If you need to use the shortcode on a widget, it is possible with a additional 
    plugin

## 常见问题

  I need a list on a widget

Get a plugin that allows you to use any shortcode on widgets, thats fairly easy 
to find here on wp plugin repository.

  How do I found out the ID from a category?

Go to Admin > posts > categories, mouse over the category that you need, and check
the ID on the link.

## 评价

此插件暂无评价。

## 贡献者及开发者

「OneSpace Last Post」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ igrossiter ](https://profiles.wordpress.org/igrossiter/)

[帮助将「OneSpace Last Post」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/onespace-lastpost)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/onespace-lastpost/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/onespace-lastpost/)，或通过[RSS](https://plugins.trac.wordpress.org/log/onespace-lastpost/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/onespace-lastpost/)。

## 更新日志

#### 0.1

inicial version

## 额外信息

 *  版本 **0.1**
 *  最后更新：**12 年前**
 *  活跃安装数量 **10+**
 *  WordPress 版本 ** 3.0.1 或更高版本 **
 *  已测试的最高版本为 **4.0.38**
 *  语言
 * [English (US)](https://wordpress.org/plugins/onespace-lastpost/)
 * 标签
 * [latest posts](https://cn.wordpress.org/plugins/tags/latest-posts/)[post](https://cn.wordpress.org/plugins/tags/post/)
 *  [高级视图](https://cn.wordpress.org/plugins/onespace-lastpost/advanced/)

## 评级

 5 星（最高 5 星）。

 *  [  2 条 5 星评价     ](https://wordpress.org/support/plugin/onespace-lastpost/reviews/?filter=5)
 *  [  0 条 4 星评价     ](https://wordpress.org/support/plugin/onespace-lastpost/reviews/?filter=4)
 *  [  0 条 3 星评价     ](https://wordpress.org/support/plugin/onespace-lastpost/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/onespace-lastpost/reviews/?filter=2)
 *  [  0 条 1 星评价     ](https://wordpress.org/support/plugin/onespace-lastpost/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/onespace-lastpost/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/onespace-lastpost/reviews/)

## 贡献者

 *   [ igrossiter ](https://profiles.wordpress.org/igrossiter/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/onespace-lastpost/)

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](http://onespace.com.br/doacoes/)