Forums

[resolved] Need to have only specific categories show up in links widget (6 posts)

  1. David Borrink
    Member
    Posted 3 years ago #

    The links widget does not allow any settings. I have three categories. I use My Link Order to group each category under it's own header.

    I found Morgan's Replacement Links Widget which allows me to put one long category into a pull-down menu in it's own widget. But, Morgan's Links widget can only be used once in the widget panel. If it could be used multiple times like a text widget, my problem would be solved.

    Meanwhile, I cannot "hide" the same category in my regular links widget. And My Link Order doesn't give the option of turning off a category.

    Anyone know of a widget that allows certain categories to be turned off?

    And wouldn't make more sense to be able to give the default WP links widgets the ability to use mulitiple categories and choose how many categories appear in each?

  2. David Borrink
    Member
    Posted 3 years ago #

    Is this something that perhaps could be modified in an hacked copy of the current links widget? A set of checkboxes or category ids that could be turned on or off? I note on the pages widget that one can choose to exclude certain pages by id from their use.

  3. David Borrink
    Member
    Posted 3 years ago #

    Okay, no wonder nobody answered.

    You're all thinking, "gee, doesn't this guy know there's a setting at the bottom of the widgets panel for number of link widgets?"

    Now I do. So I choose the number of widgets I wanted, and Morgan's replicated that many times.

    For those who learn from my ignorance... you're welcome.

  4. Garry Chahal
    Member
    Posted 3 years ago #

    Exclude the desired categories with:

    <ul>
    <?php
    wp_list_categories('orderby=name&show_count=1&exclude=10'); ?>
    </ul>

    You can write some PHP code to hide the desired categories with upper code when some condition comes true.

  5. Camper
    Member
    Posted 3 years ago #

    Hi, I really this functionality. I do not want to exclude. Cause I have a lot of categories and it's kind of a hassle I if will pinpoint all of to pinpoint.. is there a code which is something "choose from content WHERE category = 'asdasd'?

    Hope yuo could help me :(

  6. ramon fincken
    Member
    Posted 3 years ago #

Topic Closed

This topic has been closed to new replies.

About this Topic