WordPress.org

Ready to get started?Download WordPress

Forums

Subtitle Filter
Does Not Work (5 posts)

  1. heavymark
    Member
    Posted 3 years ago #

    Installed Plugin and simly shows the whole main menu rather than the submenu I specified.

  2. Marcus Downing
    Member
    Plugin Author

    Posted 2 years ago #

    Have you added the 'submenu' => 'Something' parameter to your call to wp_nav_menus?

  3. Inkline
    Member
    Posted 2 years ago #

    Your plugin works great for Posts or Custom links added to a WP menu, but does not work for Pages added to menus.

    To fix...

    Line 42 in submenu-filter.php is originally:

    $item->slug = sanitize_title_with_dashes($item->post_title);

    When you add pages to a WP menu, they don't have a post_title property.

    Simply change to use the 'title' property since all object types added to a WP menu have this property.

    New Line 42:

    $item->slug = sanitize_title_with_dashes($item->title);

  4. Marcus Downing
    Member
    Plugin Author

    Posted 2 years ago #

    I actually found and fixed the same problem only a few days ago, and have yet to publish a new version.

  5. Marcus Downing
    Member
    Plugin Author

    Posted 2 years ago #

    I've published version 1.2 which should fix this.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic