• Resolved Elliot Taylor

    (@raisonon)


    Currently I’m using the following shortcode:

    [jobs categories=”CATA” show_categories=”true”]

    I would like to check IF cat empty. If it is then I can display a custom message

    How best to achieve this?

    Example:

    <?php

    if (check_cat_is_not_empty) {
    echo do_shortcode(‘[jobs categories=”external-tenders” show_categories=”true” ]’)
    }
    else
    {
    echo ‘Cat is Empty’;
    }
    ?>

    Thanks!

    https://www.ads-software.com/plugins/wp-job-manager/

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘IF shortcode empty THEN show alternative message’ is closed to new replies.