Forum Replies Created

Viewing 1 replies (of 1 total)
  • Thread Starter sumitc2c

    (@sumitc2c)

    Subject: Issue with Schema Output Showing "author": "Array" Instead of Author Details

    Message:

    Hi Support Team,

    I’m experiencing an issue with the Schema & Structured Data for WP & AMP plugin on my WordPress site. The generated JSON-LD markup for blog posts is showing incorrect values for certain properties.

    Here’s the problem snippet from the generated schema:

    "author": "Array", "editor": "Array", "publisher": "Array", "speakable": { "@type": "SpeakableSpecification", "xpath": ["/html/head/title", "/html/head/meta[@name='description']/@content"] }

    Instead of outputting the actual author, editor, and publisher details, the schema is returning the word “Array”.

    Steps to reproduce:

    1. I’m using the Schema & Structured Data for WP & AMP plugin (latest version).
    2. The issue occurs on single blog post pages.
    3. My site uses a custom theme with standard WordPress author fields (display_name, description, etc.).

    Expected behavior:
    The plugin should output proper schema objects, such as:

    "author": { "@type": "Person", "name": "John Doe", "url": "https://example.com/author/john-doe/" }

    Additional info:

    • WordPress version: Current version: 6.8.2
    • Plugin version: 1.52
    • Please help me resolve this issue. It seems like the plugin might be trying to output an array of authors or an object but not encoding it properly in JSON.

    Thank you,
    sumit gupta

Viewing 1 replies (of 1 total)