• Resolved Shanhua

    (@shanhua)


    Hello,

    I have a category I would like to hide from the “Select Category > Show all categories”
    drop-down list that is visible to users.

    I use the SlimPlus template.

    Is there a shortcode or other way to do this?

    I have tried setting all the entries in this category as “unlisted” — but the category and the entries still show up in the “Select Category > Show all categories” drop-down list.

    Thanks for any advice!

    P.S. I’m using the latest versions of WP and Connections

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Steven

    (@shazahm1hotmailcom)

    Try adding show_empty_categories="false" to the existing [connections] shortcode on your directory page.

    Since the entries have all been marked as “unlisted” for the given category, I think that should cause the category not to be shown. One exception I can think of is if that category has children categories that are not empty.

    I hope this helps, please let me know.

    Thread Starter Shanhua

    (@shanhua)

    Thanks, Steven.

    I tried as suggested but I still see the category in the drop-down list. This category does not have a child category.

    What I’m trying to do is to have a category that I can access from the back end, but not have it visible at all from the front end.

    Is that possible?

    Plugin Author Steven

    (@shazahm1hotmailcom)

    hmmm… I think that should have worked. Are your pages being cached either with a plugin or using a web host-provided service? If it is, please try clearing the site’s page cache.

    Depending on how Entries are assigned to the categories, you could try excluding the category by using the exclude_category shortcode option. Hers’ the link to the documentation page for this option:

    This will cause Entries assigned to that category not to be displayed if they are not assigned to any other category.

    Another option that is, a bit more technical. There is a free addon, Split Categories. Here’s the link:

    You would have to create a new top-level parent category; the name is not important. Then edit the category you do not wish to be shown and set it as a child category of the new parent category. After that edit, navigate to the Connections Settings admin page and click the Advanced tab. Click in the new category name in the Split Category settings and then save the change.

    This will cause that parent category to be split out and show its children in the admin in a new section named with the parent category name. It will also be removed from the category dropdown on the site’s front end.

    I hope this helps! Let me know how it goes.

    Thread Starter Shanhua

    (@shanhua)

    Thank you, Steven — you are the man!!

    The shortcode option exclude_category worked.

    Appreciate the advice and guidance!

    Plugin Author Steven

    (@shazahm1hotmailcom)

    Good to hear that worked out for you. Have a great day!

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Hiding a category?’ is closed to new replies.