[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_related by matching noderef

Use the bw_related shortcode to list other content related to the currently displayed post. The Related posts and pages widget on the side bar displayed for a plugin is a text widget with 4 shortcodes to list related content.

Pages
[bw_related post_type=page meta_key=_plugin_ref ]
 
    List pages related by plugin reference. Since there is no meta_value parameter this defaults to the current post id. This is then used to find pages which have a post meta field called _plugin_ref with the given value. The _plugin_ref field is of type noderef for the oik-plugin post type. It was defined using the oik-types plugin.

    Posts
    [bw_related post_type=post meta_key=_plugin_ref ]
     
      Lists posts related by plugin reference. Similar to the above but for posts.

      Posts related by tag
      [bw_related post_type=post tag=._oikp_slug]
       
      • Post: 41068
      • [bw_table] currently dependent upon oik-fields plugin
      • [oik] blocks outer and inner blocks example
      • 50% discount to end July
      • Announcing the [ bw_contact_button]
      List posts tagged with the value of the _oikp_slug field.

      Posts related by category name
      [bw_related post_type=post category_name=._oikp_slug]
       
      • Post: 41068
      • [bw_table] currently dependent upon oik-fields plugin
      • [oik] blocks outer and inner blocks example
      • 50% discount to end July
      • Announcing the [ bw_contact_button]
      Lists posts in the category of the _oikp_slug field.

      Notes

      This post is a shortcode_example. Since they refer to fields which are not defined for this post type the above shortcodes are not expected to produce any results.
      Shortcode: bw_related – Display links to related content
      Letters:

      Published: March 1, 2014 | Last updated: March 1, 2014

      Information

      Shortcode: bw_related – Display links to related content
      Letters:

      Syntax

      Syntax

      [bw_related
      post_type="| post type - Related post type"
      meta_key="| meta key - name of noderef field"
      meta_value="| meta value - the default value depends on the field type"
      format="| format string - field format string"
      by="| noderef field - name of a noderef field"]

      Other examples

      • bw_related – Other examples text widget
      • bw_related by date
      • bw_related via noderef values – different field names
      • bw_related with format= parameter
      • Display related posts by noderef field

      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-2025. All rights reserved.


      Website designed and developed by Herb Miller of Bobbing Wide
      Proudly powered by WordPress and oik-plugins

      WordPress version: 6.8.3

      Gutenberg version: 21.7.0

      PHP version: 8.2.29