Syntax
[bw_pages
numberposts="5| 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"
format="| format - field format string"
read_more="| ''| string - text for read more button"]
Use the [bw_pages] shortcode to dynamically create a list of posts, pages or custom post types. By default [bw_pages] formats the output with the title, image as a link, the excerpt and a “read more” link.
Use the format
parameter to specify the sequence of the content to be displayed.
Use the fields
parameter to define the fields to be displayed when using the fields abbreviation.
See also
Example: [bw_pages] and [bw_list] – list child pages
Example of using the [bw_pages] and [bw_list] shortcodes.
Using the [bw_pages] shortcode without parameters we list only the child pages of the current page.
Example: bw_pages using the format= parameter
Example demonstrating some of the uses for the format= parameter for the [bw_pages] shortcode.
Example: [bw_pages] and [bw_list] – list child pages
Example of using the [bw_pages] and [bw_list] shortcodes.
Using the [bw_pages] shortcode without parameters we list only the child pages of the current page.
Example: bw_pages using the format= parameter
Example demonstrating some of the uses for the format= parameter for the [bw_pages] shortcode.