WordPress.org

Forums

List Pages Shortcode
Custom Post Types (1 post)

  1. Jon Brown
    Member
    Posted 4 years ago #

    This plugin can be made to work with Custom Post types by adding 'post_type' to the defaults.

    // Set defaults
      $defaults = array(
         'class'       => $tag,
    . . .
         'exclude_current_page' => 0,
         'post_type'   => ''
      );

    Then passing it the short code
    [list-pages post_type="{post_type}"]
    for example [list-pages post_type="products"]

    Which is all very cool... but it'd be nice to add it to the plugin and second document it in the notes...

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • List Pages Shortcode
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic