• Hello,

    I am using plugin Version 1.0.3.

    I have created a few categories and added staff to those categories. I’d like to build pages showing specific categories. The help says there is a attribute for the [staff-directory] shortcode (cat=1) but the categories I created in the UI are not getting an ID and there isn’t a place while editing the category to add a value to ID. What can I do?

    Thank you,
    Peter.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter dualice

    (@dualice)

    Also, when I use the category name with the category attribute, the listing of staff members shows more than those in the specified category.

    I’ve tried:
    [staff-directory orderby =ID order=ASC category=”officers”]
    [staff-directory orderby =ID order=ASC category=officers]
    [staff-directory orderby =ID order=ASC cat=”officers”]
    [staff-directory orderby =ID order=ASC cat=officers]

    They all list staff members that are not in the category “officers”

    Thanks,
    Peter.

    Thread Starter dualice

    (@dualice)

    If this helps…I went through the database and found the category ids in the following table/query

    mysql> describe wp_jab2jq_terms;
    +————+———————+——+—–+———+—————-+
    | Field | Type | Null | Key | Default | Extra |
    +————+———————+——+—–+———+—————-+
    | term_id | bigint(20) unsigned | NO | PRI | NULL | auto_increment |
    | name | varchar(200) | NO | MUL | | |
    | slug | varchar(200) | NO | MUL | | |
    | term_group | bigint(10) | NO | | 0 | |
    +————+———————+——+—–+———+—————-+
    4 rows in set (0.00 sec)

    select * from wp_jab2jq_terms where slug like ‘%past%’;

    I used the term_id in the “cat=” attribute and that worked.

    -Peter.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘no ID for category’ is closed to new replies.