job posting snippet

#277585
  • Resolved Constanze Westphal
    Rank Math free

    Hi,

    we use RankMath Pro on our Website pro-spiro.de
    Our programmer bought it and she is on holidays so I use this account for my question.

    We use RankMath job sheme for postings in wordpress. Is there a possebility to get our text from the wordpress post automatically in the description in the sheme builder? I couldn’t find a suitable variable.

    Best regards

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hello,

    Thank you for contacting Rank Math today.

    You can create a custom variable called %full_content% with the following code:

    
    add_action( 'rank_math/vars/register_extra_replacements', function(){
        rank_math_register_var_replacement(
            'full_content', [
                'name'        => esc_html__( 'Full Content', 'rank-math' ),
                'description' => esc_html__( 'Output the entire content of the post.', 'rank-math' ),
                'variable'    => 'full_content',
                'example'     => full_content_callback(),
            ],
            'full_content_callback'
        );
    });
    
    function full_content_callback() {
        return get_the_content();
    }
    

    ​​​​​​Then you can use that variable in the Schema Generator to fetch the entirety of the content you have on the post to any given field.

    If you are not sure how to apply this custom code you can follow the steps here: https://rankmath.com/kb/wordpress-hooks-actions-filters/

    Hope this helps solve your issues.

    Don’t hesitate to get in touch if you have any other questions.

    Thanks for your fast response. We have 2 job-postings working fine. They show up at google for jobs. But all the other job postings (over 10) are not showing up like this one: https://pro-spiro.de/jobs-kinderintensivpflege-dresden/

    I didn’t do anything differently than with the others. Hope you can help us.

    Best regards

    Hello,

    Thanks for contacting us and sorry for any inconvenience that might have been caused due to that.

    I checked the URL that you have shared and the JobPosting Schema is being applied to the post:

    Please check again on your end and let us know if the issue persists.

    Looking forward to helping you.

    For the link the check is good but I still can not find it on google for jobs.

    Best regards

    Hello,

    If your job posting isn’t appearing in the job search results, please verify your site and make sure to follow Google’s guidelines here:
    https://developers.google.com/search/docs/advanced/structured-data/job-posting#guidelines

    Also, Google recommends that for job posting URLs, they recommend using the Indexing API instead of sitemaps because the Indexing API prompts Googlebot to crawl your page sooner than updating the sitemap and pinging Google.

    However, we still recommend submitting a sitemap for coverage of your entire site.

    I hope that helps.

    Thank you.

    Hello,

    Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.

    If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.

    Thank you.

Viewing 5 replies - 1 through 5 (of 5 total)

The ticket ‘job posting snippet’ is closed to new replies.