WordPress.org

Forums

Display Widgets
[resolved] Custom Post Type Archive control (6 posts)

  1. Jacob Dubail
    Member
    Posted 2 years ago #

    Hello and thanks for such a useful plugin.

    I am in a situation where I need to display one widget on the regular Archives page, and another widget on a Custom Post Type Archive page.

    Currently, there is only a checkbox for Archives, which obviously controls all archives for all post types.

    Could you add the option for custom post type archives, as well, as you have done for custom taxonomies?

    Many thanks,
    Jacob

    http://wordpress.org/extend/plugins/display-widgets/

  2. tomoki
    Member
    Posted 2 years ago #

    I added it manually based on the existing code. For anyone interested, replace display-widgets.php with this:
    http://pastebin.com/q75Vdhvk

    It's not thoroughly tested so use at your own risk.

  3. ehaddad
    Member
    Posted 2 years ago #

    Huge thanks!

  4. ArielK
    Member
    Posted 2 years ago #

    This is an interesting update. It would be good if it will be in the next version of the plugin

  5. Steph Wells
    Member
    Plugin Author

    Posted 1 year ago #

    @tomoki, thanks for the code. This has been added in v2.0. Thanks again!

  6. tomoki
    Member
    Posted 1 year ago #

    Great news, glad to be of help!

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Display Widgets
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.