2

I put the FAQ schema code on my single page (WordPress) and it doesn't display on Google result.

The code is right but I don't know why it doesn't work.

<!-- FAQ schema-->
        <?php if(get_post_meta($post->ID, 'dm_que1',true)){ ?>
        <div itemscope="" itemtype="https://schema.org/FAQPage">
            <div itemscope="" itemprop="mainEntity" itemtype="https://schema.org/Question">
                <h3 class="city-information_title" itemprop="name"><?php $post_meta = get_post_meta($post->ID, 'dm_que1',true);echo $post_meta; ?></h3>
                <div itemscope="" itemprop="acceptedAnswer" itemtype="https://schema.org/Answer">
                    <p class="city-information_content" itemprop="text"><?php $post_meta = get_post_meta($post->ID, 'dm_ans1',true);echo $post_meta; ?></p>
                </div>
            </div>

            <div itemscope="" itemprop="mainEntity" itemtype="https://schema.org/Question">
                <h3 class="city-information_title" itemprop="name"><?php $post_meta = get_post_meta($post->ID, 'dm_que2',true);echo $post_meta; ?></h3>
                <div itemscope="" itemprop="acceptedAnswer" itemtype="https://schema.org/Answer">
                    <p class="city-information_content" itemprop="text"><?php $post_meta = get_post_meta($post->ID, 'dm_ans2',true);echo $post_meta; ?></p>
                </div>
            </div>

            <div itemscope="" itemprop="mainEntity" itemtype="https://schema.org/Question">
                <h3 class="city-information_title" itemprop="name"><?php $post_meta = get_post_meta($post->ID, 'dm_que3',true);echo $post_meta; ?></h3>
                <div itemscope="" itemprop="acceptedAnswer" itemtype="https://schema.org/Answer">
                    <p class="city-information_content" itemprop="text"><?php $post_meta = get_post_meta($post->ID, 'dm_ans3',true);echo $post_meta; ?></p>
                </div>
            </div>
        </div>
        <?php } ?>
  • 1
    Check if it has been crawled via the Google Search Console URL Inspection Tool. If it has it will report the FAQPage. Also, valid markup is not a guarantee that you will get rich results. – Tony McCreath Sep 28 at 12:11
  • Google is notoriously slow, very very slow. What are you expecting and how long has it been? Cheers!! – closetnoc Sep 28 at 14:00
  • my blog indexed and submitted but just published almost 7 days – m.javad Koushki Sep 29 at 7:29
  • 7 days is not enough time for Google to process all that it needs to. It may be weeks or months before Google picks up any mark-up and take advantage of it. – closetnoc Sep 30 at 14:19
0

Google guidelines make it clear that rich snippets are not guaranteed, even if the code is correct:

Google does not guarantee that your structured data will show up in search results, even if your page is marked up correctly

Those guidelines offer several reasons why a rich snippet may not be shown, many of which relate to the content itself.

I recommend checking through those and making any necessary adjustments. Also, if you don't already have one, set up a Search Console account so you will be notified of any manual actions that may have been applied.

-1

The FAQ schema is only supposed to show in the search results when more than one website in top positions are using it.

  • Do you have a reference to share to verify this? This sounds plausible, but it having a reference would make this much more authorative. – Stephen Ostermiller Sep 30 at 15:54
  • It's just an observation. – Shayan Davoodi Oct 7 at 13:06

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.