*

Own Petz

  • ****
  • 171 posts
  • OwnPetz - Free Classified Ads. Buy, Sell or Adopt
How to Show Structure data for Blog Article?
« on: October 31, 2023, 08:10:08 AM »
Thanks in Advance.

Can you please tell me how to add structure data for blog .. because when I am testing my blog article in google Rich Result Test , Its showing NO Items Detected.


screenshot attached.
OwnPetz - Free Classified Ads. Buy, Sell or Adopt Online. https://ownpetz.com

*

Own Petz

  • ****
  • 171 posts
  • OwnPetz - Free Classified Ads. Buy, Sell or Adopt
Re: How to Show Structure data for Blog Article?
« Reply #1 on: October 31, 2023, 08:12:18 AM »
And when I scan in schema markup validation.. result showing - No Items Detected..

Screenshot attached.

Please tell me how to fix this.

Thanks in Advance.
OwnPetz - Free Classified Ads. Buy, Sell or Adopt Online. https://ownpetz.com

*

Own Petz

  • ****
  • 171 posts
  • OwnPetz - Free Classified Ads. Buy, Sell or Adopt
Re: How to Show Structure data for Blog Article?
« Reply #2 on: October 31, 2023, 08:37:29 AM »
I found something but this is for single article - I want add structure data in articles for all.. So that this generate automatically..  Like author Name, Publish Date, Blog Image, Blog Title , Blog Short Description , and details like below..



<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "Article",
  "mainEntityOfPage": {
    "@type": "WebPage",
    "@id": "https://ownpetz.com/blog/article/10-essential-jupyter-notebook-skills-for-data-scientists-b1365"
  },
  "headline": "10 Essential Jupyter Notebook Skills for Data Scientists",
  "description": "Master these 10 vital Jupyter Notebook skills for data science success. Elevate your analysis and visualization capabilities.",
  "image": "https://ownpetz.com/oc-content/plugins/blog/img/blog/1365.jpg", 
  "author": {
    "@type": "Person",
    "name": "Learn",
    "url": "https://ownpetz.com/blog/author/learn-a5"
  }, 
  "publisher": {
    "@type": "Organization",
    "name": "",
    "logo": {
      "@type": "ImageObject",
      "url": ""
    }
  },
  "datePublished": "2023-10-29",
  "dateModified": "2023-10-29"
}
</script>
OwnPetz - Free Classified Ads. Buy, Sell or Adopt Online. https://ownpetz.com

*

MB Themes

Re: How to Show Structure data for Blog Article?
« Reply #3 on: October 31, 2023, 03:14:42 PM »
I would use "structured_data_footer" hook to enrich existing data.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Own Petz

  • ****
  • 171 posts
  • OwnPetz - Free Classified Ads. Buy, Sell or Adopt
Re: How to Show Structure data for Blog Article?
« Reply #4 on: October 31, 2023, 06:48:23 PM »
Thanks for your reply.

Can you please suggest me how can I use that.
OwnPetz - Free Classified Ads. Buy, Sell or Adopt Online. https://ownpetz.com

*

Own Petz

  • ****
  • 171 posts
  • OwnPetz - Free Classified Ads. Buy, Sell or Adopt
Re: How to Show Structure data for Blog Article?
« Reply #5 on: November 01, 2023, 06:18:53 AM »
So that structure data show these things

Author Name, Publish Date, Article Image, Article Image Url, Article URL,  Article Title


Article Short Description, Article Views count - -  If possible these extra
OwnPetz - Free Classified Ads. Buy, Sell or Adopt Online. https://ownpetz.com

*

Own Petz

  • ****
  • 171 posts
  • OwnPetz - Free Classified Ads. Buy, Sell or Adopt
Re: How to Show Structure data for Blog Article?
« Reply #6 on: November 01, 2023, 06:49:52 AM »
I find this on google - and when I paste this code in article its working but i want to get code for getting image , for getting author name , how can I call author name and publish date.

Can you please edit this code and resend to me.. thanks you so much in Advance. 

<script type="application/ld+json">
    {
      "@context": "https://schema.org",
      "@type": "NewsArticle",
      "headline": "Title of a News Article",
      "image": [
        "https://example.com/photos/1x1/photo.jpg",
        "https://example.com/photos/4x3/photo.jpg",
        "https://example.com/photos/16x9/photo.jpg"
       ],
      "datePublished": "2015-02-05T08:00:00+08:00",
      "dateModified": "2015-02-05T09:20:00+08:00",
      "author": [{
          "@type": "Person",
          "name": "Jane Doe",
          "url": "https://example.com/profile/janedoe123"
        },{
          "@type": "Person",
          "name": "John Doe",
          "url": "https://example.com/profile/johndoe123"
      }]
    }
    </script>
OwnPetz - Free Classified Ads. Buy, Sell or Adopt Online. https://ownpetz.com

*

Own Petz

  • ****
  • 171 posts
  • OwnPetz - Free Classified Ads. Buy, Sell or Adopt
Re: How to Show Structure data for Blog Article?
« Reply #7 on: November 01, 2023, 07:24:06 AM »
I modify this code.. and I am only getting article title, publish date and article image url.. (please also check that is correct or not)

please tell me how to call or , Get article URL , get Author name and author url, Seo description or sub title


<script type="application/ld+json">
    {
      "@context": "https://schema.org",
      "@type": "Article",
      "URL": "Get Article URL"
      "headline": "<?php echo blg_get_title($blog); ?>",
      "description": "seo description or sub title"
      "image": "<?php echo blg_img_link($blog['s_image']); ?>",
      "datePublished": "<?php echo date('j M Y', strtotime($blog['dt_pub_date'])); ?>",
      "author": [{
          "@type": "Person",
          "name": ""$author['s_name']",
          "url": "https://example.com/profile/janedoe123"
        }]
    }
    </script>
« Last Edit: November 01, 2023, 09:42:35 AM by Own Petz »
OwnPetz - Free Classified Ads. Buy, Sell or Adopt Online. https://ownpetz.com

*

Own Petz

  • ****
  • 171 posts
  • OwnPetz - Free Classified Ads. Buy, Sell or Adopt
Re: How to Show Structure data for Blog Article?
« Reply #8 on: November 01, 2023, 07:00:23 PM »
Please reply...
OwnPetz - Free Classified Ads. Buy, Sell or Adopt Online. https://ownpetz.com

*

Own Petz

  • ****
  • 171 posts
  • OwnPetz - Free Classified Ads. Buy, Sell or Adopt
Re: How to Show Structure data for Blog Article?
« Reply #9 on: November 02, 2023, 06:52:35 AM »
Now I fixed this Issue by myself... Now I am getting all details..

Please check all is correct or not.


<script type="application/ld+json">
    {
      "@context": "https://schema.org",
      "@type": "Article",
      "mainEntityOfPage": {
    "@type": "WebPage",
    "@id": "<?php echo osc_esc_html($url); ?>"  },
      "headline": "<?php echo blg_get_title($blog); ?>",
      "description": "<?php echo osc_esc_html(osc_highlight(osc_structured_data_description(), 200)); ?>",
      "image": "<?php echo blg_img_link($blog['s_image']); ?>",
      "datePublished": "<?php echo date('j M Y', strtotime($blog['dt_pub_date'])); ?>",
      "author": [{
          "@type": "Person",
          "name": "<?php echo $author['s_name']; ?>",
          "url": "<?php echo osc_route_url('blg-author', array('authorSlug' => osc_sanitizeString(blg_slug($author['s_name'])), 'authorId' => $author['pk_i_id'])); ?>"
        }]
    }
    </script>
OwnPetz - Free Classified Ads. Buy, Sell or Adopt Online. https://ownpetz.com

*

Own Petz

  • ****
  • 171 posts
  • OwnPetz - Free Classified Ads. Buy, Sell or Adopt
Re: How to Show Structure data for Blog Article?
« Reply #10 on: November 02, 2023, 07:12:01 PM »
Please reply.
OwnPetz - Free Classified Ads. Buy, Sell or Adopt Online. https://ownpetz.com

*

Own Petz

  • ****
  • 171 posts
  • OwnPetz - Free Classified Ads. Buy, Sell or Adopt
Re: How to Show Structure data for Blog Article?
« Reply #11 on: November 06, 2023, 01:50:36 PM »
Can you please check and reply..
OwnPetz - Free Classified Ads. Buy, Sell or Adopt Online. https://ownpetz.com

*

MB Themes

Re: How to Show Structure data for Blog Article?
« Reply #12 on: November 06, 2023, 08:22:02 PM »
You see if it is correct in page source code.
You using $blog variable, make sure it is defined and contain article data.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Own Petz

  • ****
  • 171 posts
  • OwnPetz - Free Classified Ads. Buy, Sell or Adopt
Re: How to Show Structure data for Blog Article?
« Reply #13 on: November 21, 2023, 04:18:03 AM »
Yes, In schema validation all result is showing correct.
OwnPetz - Free Classified Ads. Buy, Sell or Adopt Online. https://ownpetz.com