Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter Josh Fialkoff

    (@nooozeguy)

    Also, the primary sidebar is not appearing on categories and posts where it is indicated that it is supposed to appear on. See these screenshots: admin: https://www.evernote.com/l/AAHDYjZZ-LNJh5QWITcclUpIgfiu5H1L9VQ and site:
    https://www.evernote.com/l/AAFhAqOod2ZCZaydlmFsTfO-_S1cB17hy_8

    Plugin Author wizzud

    (@wizzud)

    I’m sorry, but all your screenshots are giving me “The URL provided does not correspond to a valid shared note. This may be caused by a typo in the link, or the note owner may have made it private.”

    I assume the site is not web-accessible (otherwise there would be no need for the screenshots). I also assume that by “primary sidebar” you mean the CMW widget it contains (as opposed to the sidebar itself)?

    Can you provide the shortcode equivalent of your settings please? And maybe some indication of your menu structure, or at least that part of it that contains the current page (that isn’t showing any output)?
    (Your admin screenshot may well have covered this…)

    Thread Starter Josh Fialkoff

    (@nooozeguy)

    Thanks for your quick reply @wizzud!
    (I am not posting the link to the staging site because I do not want that indexed by Google.)
    Here is the shortcode:
    [cmwizard menu=12 title=“In This Section” branch=current start_mode=level depth=2 depth_rel_current=1 fallback=“parent, +siblings,3” ancestors=-1 exclude+level=“1-“ title_from=“current-root” ol_root=1 ol_subj=1 fallback_ci_parent=1 menu_class=“ “/]
    Yes, you are correct, I mean the CMW widget inside the sidebar.
    Here is a new link to the screenshot (which works incognito): screenshot of website.
    Here is a new link to the menu:
    menu scrrenshot.
    Thank you again for your quick help!
    Josh

    Plugin Author wizzud

    (@wizzud)

    Josh

    Right, I’ve had a look at the example you gave me (the MTA Study… post). The reason you’re not getting a CMW instance when that page is on view is primarily because it isn’t in the main menu (upon which your CMW instance is based). The fallback_ci_parent option won’t help because it falls back to looking for an item that is marked (by WordPress) as current-menu-parent (when no current-menu-item can be found), and there is no item in the main menu that is classed as such. In fact there are no current-menu-* classes anywhere in the menu when that MTA Study… post is being shown, presumably because WordPress can’t say that it is a child item of any particular menu item, even though it can determine (from the post hierarchy) that both Hot Issues and Charter Schools are current-page-ancestor.

    Since the page in question is not in the menu, and WordPress cannot/will not indicate a parent menu item for it, the CMW primary filter of Branch=Current Item fails and there is no output.

    PS : I don’t know whether it would fit into your site plan but I have a tentative suggestion for a possible way around this? Assign the MTA Study… (and maybe other similar posts that are not on the menu) to a suitable Category, such as [Something Relevant] Reference, and add the category as a menu item to a relevant sub-menu. WordPress would mark a category menu item as current-menu-parent when a post in that category was on display, and setting CMW’s fallback_ci_parent option would make CMW pick up that category menu item as the Current Item (given a lack of a more specific alternative).

    Thread Starter Josh Fialkoff

    (@nooozeguy)

    This is great information @wizzud. Thank you so much for being so responsive to questions.
    Is it correct that there is no way to show all posts within a category using Custom Menu Wizard unless the posts are added to the Category menu (or whichever menu the post category uses)?
    Thanks,
    Josh

    Plugin Author wizzud

    (@wizzud)

    ‘Fraid so. CMW is merely a filter : it will remove stuff, but it won’t add stuff in.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘No Menu Appears on Pages Without Children’ is closed to new replies.