ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Category parameter not working

July 02, 2010 5:20pm

Subscribe [4]
  • #1 / Jul 02, 2010 5:20pm

    lamar

    51 posts

    I am trying to exclude certain weblog entries from being displayed based on their category. However, nothing I’ve tried works; it’s as if the entry doesn’t know what categories it’s in.

    Here’s the entry code I’m using:

    {exp:weblog:entries category="not 235|236" disable="category_fields|member_data|pagination|trackbacks" 
    limit="10" sticky="off" weblog="not buttonad|contenttest|enewsletters|events|galleryitems|leaderboardad|
    leadership|nnanews|polls|redirect|roll|rotator|rectanglead|squaread|toolsitems"}

    Any suggestions?

    Thanks.

    L.

  • #2 / Jul 02, 2010 6:50pm

    Brandon Jones

    5500 posts

    Lamar,

    1. Which version and build of EE are you using?
    2. At Admin > Weblog Administration > Global Weblog Preferences, what setting do you have for Auto-Assign Category Parents?
    3. As entries can be assigned multiple categories, make sure you are excluding all of the applicable categories.
    4. I’d simplify your weblog parameter down to specifying only one weblog to show and use that to test with.

  • #3 / Jul 02, 2010 7:08pm

    lamar

    51 posts

    1. Version 1.6.8, build 20090723 (Yes, I know; updating isn’t an option for a variety of reasons.)
    2. Yes.
    3. Done.
    4. Tried that; didn’t help.

    Thanks.

    L.

  • #4 / Jul 02, 2010 7:34pm

    Brandon Jones

    5500 posts

    Lamar, are you using any extensions? Temporarily disable them via the large green button in the Extension Manager if so.

    Then, start with the basics.

    1. Create a new entry and assign it to one and only one parent category
    2. Try a simple weblog tag that correctly displays the entry
    3. Add

    category="not x"

    to the weblog tag’s parameter and make sure the entry no longer displays. Post both versions of the simplified weblog tags if you’re still having issues.

  • #5 / Jul 02, 2010 8:49pm

    tinyv

    11 posts

    Hey Lamar

    Are you trying to display entries without any categories at all or just entries without certain, defined categories?
    Also, have you tried adding a category group parameter (assuming that a relationship exists between your weblog and a particular category group) to {exp:weblog:entries} tag, eg

    {exp:weblog:entries category_group="5" ...}

    Cole

  • #6 / Jul 02, 2010 11:32pm

    lamar

    51 posts

    I am trying to not display specific entries, which are all in a specific category. I haven’t tried using a category group because the entries I do want to display are in the same group.

    L.

  • #7 / Jul 03, 2010 3:02pm

    Greg Salt

    3988 posts

    Hi Lamar,

    Please follow the instructions Brandon posted above and then let us know the results.

    Cheers

    Greg

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases