• Resolved virrson

    (@virrson)


    Hello!

    I would like to get some help. Iv’e searched for hours with no solution. I would like to show the numbers of job offers in the meta description. I am using Yoast and tried the custom field finder but it wont show the field for numbers of active jobs. Dose anyone have a solution? Ive seen a lot of pages doing this.

    Example: “We have 12 job offers for you”

    Thanks in advance!

    Best regards,
    Viktor

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter virrson

    (@virrson)

    Anyone? ??

    Plugin Support bindlegirl (a11n)

    (@bindlegirl)

    Hi Victor ( @virrson )!

    You are looking to show the number of all active jobs on your site? If so, that is not something WP Job Manager will show out-of-the-box. Maybe you will need to create a function to calculate all posts with post_status=publish & post_type=job_listing.

    Hello,

    personally I wanted to display the number of offers available so I did that.
    I hope this will help you.

    Cordially

    <?php 
                    $query = new WP_Query( array('post_type' => 'job_listing','meta_key' => '_filled', 'meta_value' => 0 ) );
                    echo $query->found_posts;
                    ?>
    Plugin Support bindlegirl (a11n)

    (@bindlegirl)

    I’m marking this as resolved since it’s been over 2 weeks with no response. If you still need help with this, please feel free to mark it ‘not resolved’ again.

    Thanks

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Show numbers of jobs in the meta description (per category)’ is closed to new replies.