वर्णन
This simple shortcode plugin allows you to list posts as a bulleted list linking to the full article. You can limit
the list to posts from a specific category and you can select the number of posts to show. The order
and
orderby options lets you sort the list too.
Usage is simple. Create a page or post and use the code [showposts category="2" num="4"]
– this will show
all 4 posts from category 2. Another example [showposts category="1" num="-1" orderby="date" order="DESC"]
shows all the posts from category 1 ordered by the date (newest post first).
By default, only 5 posts are shown (unless you use the num
option) and sorting in by date (oldest to newest).
Example
You can see two examples of the code working at the following links:
- https://www.xtremeps3.com/ps5-firmware-history/
- http://www.xtremeps3.com/firmware-history/
- http://www.xtremeps3.com/faqs/
Usage
The shortcode is [showposts]
You can use the following parameters to customize what is displayed (all are optional):
[showposts category="2" num="4" order="DESC" orderby="date"]
Set order
to one of the following:
author
– Sort by the numeric author IDs.category
– Sort by the numeric category IDs.content
– Sort by content.date
– Sort by creation date.ID
– Sort by numeric post ID.menu_order
– Sort by the menu order. Only useful with pages.mime_type
– Sort by MIME type. Only useful with attachments.modified
– Sort by last modified date.name
– Sort by stub.parent
– Sort by parent ID.password
– Sort by password.rand
– Randomly sort results.status
– Sort by status.title
– Sort by title.-
type
– Sort by type.orderby can be one the following:
-
DESC
- ASC
स्थापना
- Upload
show-posts-shortcode.php
to the/wp-content/plugins/
directory - Activate the plugin through the ‘Plugins’ menu in WordPress
- Place
[showposts category="2" num="4"]
in your post or pages
समीक्षा
ह्या प्लगइनसाठी कोणतेही समीक्षण नाही.
योगदानकर्ते आणि विकसक
“Show Post Shortcode” हे मुक्त स्रोत सॉफ्टवेअर आहे. पुढील लोक या प्लगइनच्या निर्मितीत योगदान केले आहे.
योगदानकर्तेभाषांतर करा “Show Post Shortcode” तुमच्या भाषेत.
विकासातील आग्रह?
कोड ब्राउझ करा, SVN संग्रहालय तपासा, किंवा विकास लॉग च्या RSS द्वारे सदस्यता घ्या.