• Resolved ncovello

    (@ncovello)


    Hello,

    We need to make different pages for users to add ads, for different categories.

    For ex. we have these categories:
    – Médecine Esthétique (parent)
    – Equipement (child)
    – Cosmétique (parent)
    – Produits (child)

    and need to create two different pages for adding the ads, one page for adding “medecine esthetique” and their subcategories, and another with the categories of “cosmetique” but make the user unable to select or view any other category.

    I’ve seen the “restrict categories” addon, but I don’t know if it works for us, because we want to restrict the categories for pages, not to hide a category for all the users/pages

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Greg Winiarski

    (@gwin)

    Hi,
    the Restrict Categories extension will not work for you i am afraid.

    You would need to use the Custom Fields extension, create two form schemes and in each edit the Category field, in the field “Fill Method” select “I will enter options myself”, below check the “use values” checkbox and start entering options.

    In the “value” field enter the category ID and in the “text” field enter category label.

    Basically, for each form scheme, you would need to enter a list of available categories manually.

    If you are not sure where to get the category IDs from you can install a plugin like Reveal IDs it will show the category IDs in wp-admin / Classifieds / Categories panel.

    Thread Starter ncovello

    (@ncovello)

    But in this way, writing the categories manually, the system will recognize the categories for the listings? (like in the categories sidebar)

    Plugin Author Greg Winiarski

    (@gwin)

    If you will use the correct categories IDs then the categories will be assigned the same way as when the options are filled automatically.

    The only downside is that when you add a new category you will need to manually add it to one of the form schemes as well (so users will be able to select it in [adverts_add] Category field).

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘filter categories’ is closed to new replies.