OnPoint Plugins

  • Plugins
    • Advanced Sidebar Menu
    • Go Live Update Urls
  • About
    • Services
    • Showcase
  • Blog
  • Contact
  • Support
  • Log In
← Back to support

Display multiple post types in one widget

Resolved

Requested: 2 years and 6 months ago

I have a large site with 8 different custom post types, but some of them (by design) fall into the same category. I would like to be able to display more than one post type in each widget.

Example:

Resources (parent)
Resources by Perspective + (child; post type X)
Resources Blog + (child; post type Y)
Pregnancy Blog + (child; post type Z)

I would like to display all three of the children AND their associated posts (three different custom post types). Right now, I can display the children, but I can only display the posts from one custom post type. Is this possible to change?

Plugin: Advanced Sidebar Menu

  1. OnPoint Plugins

    2 years and 6 months ago

    Hi Miranda,

    You may include multiple post types by adding the following filter to your active theme’s functions.php file:

    You will need to change the list of post type slugs to match the ones you are using on your site. In this example I simply added:

    1. page
    2. post
    3. x-slug
    4. y-slug
    5. z-slug

    Have a great day!

New Response Cancel reply

You must be logged in to respond. Only PRO members are allowed to respond to support requests.

© 2023 · WordPress Development · Terms Of Service · Privacy Policy · Cookie Policy · Log in

  • Plugins
  • Blog
  • Contact