• I’ve created a category ‘doctors’ in People Profile and when I try to display posts using the post shortcode plugin, the category doesn’t appear to work. If I use the post type, all the people posts display.

    For example:

    [display-posts post_type=”people’ posts_per_page=”5″ order=”ASC” orderby=”title”]

    works fine, but

    [display-posts category=”doctors” posts_per_page=”-1″ order=”ASC” orderby=”title”]

    doesn’t.

    Is there anything I need to do to enable the shortcode to recognise the ‘doctors’ category?

    Regards
    James

    https://www.ads-software.com/plugins/people-profile-cpt/

Viewing 1 replies (of 1 total)
  • Thread Starter jprstoney

    (@jprstoney)

    Solved it. The People profile categories were actually taxonomies.

    This worked:

    [display-posts post_type=”people” taxonomy=”people_category” tax_term=”london” posts_per_page=”5″ order=”ASC” orderby=”title”]

Viewing 1 replies (of 1 total)
  • The topic ‘People categories don't work in shortcodes’ is closed to new replies.