• Resolved mastercavid

    (@mastercavid)


    Hi. I created professions taxonomy and created doctors, teachers and etc. How can I get count of doctors, teachers?

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

    (@shawfactor)

    get_term_by returns a term object that includes a count, so something like

    $term_object = get_term_by( ‘slug’, ‘teacher’, ‘profession’);

    echo $term_object->count;

    Plugin Author shawfactor

    (@shawfactor)

    @mastercavid did that answer your question?

    Plugin Author shawfactor

    (@shawfactor)

    I am resolving this for good order. I will till onitor the thread

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