[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

How to use bw_pages to display a list of PDF files with Excerpts

If you have uploaded a load of PDF files to your site and want to make a page containing a full list then you can do this using a number of different shortcodes. Here we use bw_pages. You can use the bw_pages shortcode with the format= and post_mime_type= parameters to select the attachments to list.

[bw_pages post_type=attachment post_mime_type=application/pdf post_parent=. orderby=date order=DESC posts_per_page=5 format="d E L"]
 
1 to 5 of 13
Date: February 3, 2020 The Apostrophes poem by Herb Miller Apostrophes
Date: August 5, 2014 A poem by Herb Miller explaining the derivation of Bobbing Wide. bobbing wide – where does it come from
Date: July 16, 2014  Top 10 questions to ask when something doesn’t work
Date: July 16, 2014  How to tell you need to find another plugin
Date: July 2, 2013  bw_pdf-another-oik-plugin-shortcode
[1] [2] [3] Next »

Notes

  • For the Media post type (attachments) the Caption is implemented using the equivalent of the Excerpt field and the Description is the Content.
  • This doesn’t eliminate duplicates; each file lists has been attached to a different parent. We needed to do this to create multiple examples.
  • You need to use post_parent=. to be able to list ALL attachments regardless of where they are linked to.

Published: July 16, 2014 | Last updated: July 16, 2014

Information

Shortcode: bw_pages – Display page thumbnails and excerpts as links
Letters:

Syntax

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"]

Other examples

  • bw_pages example using format= parameter
  • bw_pages to display recent plugin updates
  • bw_pages with dynamic blocks in Content
  • bw_pages with dynamic blocks in Excerpt
  • bw_pages with styled images excerpt and read more link
  • Display thumbnails and excerpt for recent changes

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.2.2. PHP: 7.4.33. Memory limit: 768M