• Best Multilingual Plugin
  • Compatible With Your Favorite Themes
  • Automatic and Human Translation
  • Translation, Multilingual, SEO

OneSpace Last Post

by Ian Garcez

2 Ratings

  • 5.0

Active Installations

30+

Last Update

10 years

Quality

D

Plugin Description

Description
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:
id – You can use any number of post categories ids separeted by commas
num – the number of posts to return for wich categorie id
info – this is where goes all the printing information
Info printing arguments:
thumb: returns the post’s featured image, you must specify the width of the thumb after ‘:’, has a link to the post
title: returns the title, has a link to the post
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
content: returns all content from post
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

Similar Plugins

  • Report Bug
The content on this website originates from various sources. All rights to the original content remain with the respective author. If you believe that your copyrights have been infringed by the use of content on this website, please contact us at info@plugin-guru.com. We will remove the content in question immediately.

This is the heading

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo.

Collections

Create your first Collection

To create a collection, simply click on the symbol on the desired plugin.

You can see this symbol when you move the mouse over the plugin. 

Current Level

Plugin Magican

You have reached 0 views on your collections and are currently Plugin Magican. You magically help people find the right plugins and are a great asset to the community

0 of 500 views reached