[oik] plugins.com

WordPress plugins and themes

  • Home
  • About
    • lazy shortcodes
    • smart shortcodes
    • oik base plugin
      • oik – donate
      • oik PayPal buttons
      • oik installation
      • oik Button Shortcode button
      • oik changelog
      • oik FAQ
      • oik plugins on SVN
      • oik plugins on GitHub
  • Plugins
    • oik base plugin
    • FREE oik plugins
    • WordPress plugins
    • Premium oik plugins
    • Bespoke oik plugins
  • Shortcodes
    • Shortcode examples
  • Blocks
    • Block examples
  • APIs
    • ALL action and filter hooks
  • Blog

[bw_posts] – list posts with category_name=example

Use the [bw_posts] shortcode to create a simple list of posts. Use the category_name= parameter to select the category of posts to be displayed.
Without any parameters the shortcode just produces a list of the most recent posts.

[bw_posts]
 
  • oik-blocks CSV block
  • Pagination not working in WordPress 4.4
  • Menu items no longer spaced apart on WordPress 4.4
  • oik-plugins.com now on WordPress 4.4
  • Black Friday – Cyber Monday
  • Total downloads from wordpress.org recently passed 250,000
  • clone the time as well
  • Shortcodes – requirements for syntax, formatting and editing
  • Testing compatibility with Shortcake v0.5.0
  • How I would solve plugin dependencies
You can control what is returned by using parameters. e.g. To get “related posts” you may choose to list posts with the same category name. Even though this is a “shortcode example” we can still do that. should list the posts with a category_name of ‘example

[bw_posts category_name='example']
 
  • How to embed a PDF file
  • Implement the missing [sociable] shortcode in functions.php
  • Example: demonstrating the [bw_api] shortcode
  • bw_pages with metadata
  • oik-nivo-slider thumbnail= parameter examples
  • Some average shortcodes
  • Tide times in Herne Bay
  • uk-tides plugin examples

See also

  • Where the [bw_posts] shortcode produces a simple list, the [bw_pages] shortcode will produce a summary of pages, posts or custom post types.

Published: February 22, 2012 | Last updated: August 8, 2014

Information

Shortcode: bw_posts – Display posts
Letters:

Syntax

Syntax

[bw_posts
numberposts="10| numeric - number to return"
offset="0| numeric - offset from which to start"
category="| category ID - numeric ID of the post category"
category_name="| category-slug - category slugs (comma separated)"
customcategoryname="| category-slug - custom category slug"
orderby="date| ID| title| parent| rand| menu_order - Sort sequence"
order="DESC| ASC - Sort order."
include="| id1,id2 - IDs to include"
exclude="| id1,id2 - IDs to exclude"
meta_key="| meta key - post metadata key"
meta_value="| meta value - post metadata value"
post_type="| page| post| attachment| custom post type - Content type to display"
post_mime_type="| image| application| text| video| mime type - Attached media MIME type"
post_parent="| ID - Parent ID to use if not current post"
post_status="| publish| inherit| pending| draft| auto-draft| future| private| trash| any - Post status"
id="| id1,id2 - IDs of posts to display"
posts_per_page="| numeric| . - Number of posts per page. Use '.' for current value 15"
class="| class names - CSS class names"]

Other examples

    Plugins

    • All Plugins
    • oik base plugin
    • FREE oik plugins
    • WordPress plugins
    • Premium oik plugins

    Themes

    • FREE themes
    • Bespoke themes
    • Premium themes

    Blocks

    • All Blocks
    • Block examples
    • About Blocks

    Shortcodes

    • All Shortcodes
    • Shortcode examples
    • About Shortcodes

    Reference

    • About APIs
    • All APIs
    • All Classes
    • All Files
    • All Hooks

    Support

    • Contact
    • Cookies policy
    • Get API key
    • Privacy
    • Request support
    • Sitemap
    • Stay informed
    • Terms and Conditions
    oik-plugins
    Email: oikplug@oik-plugins.com

    Weight shipping plugins

    Find out which cart weight shipping plugin you need for your WooCommerce site.
    Which cart weight based plugin do I need?

    Site:  www.oik-plugins.com
    © Copyright oik-plugins 2011-2023. All rights reserved.


    Website designed and developed by Herb Miller of Bobbing Wide
    Proudly powered by WordPress and oik-plugins
    WordPress 6.1.1. PHP: 7.4.33. Memory limit: 768M