Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Rik Schennink

    (@pqina)

    Hi!

    Sorry for the delayed response, I somehow missed notifications for topics the past few weeks.

    The following book snippet from https://moz.com/learn/seo/schema-structured-data

    Could be transformed from this HTML:

    <div itemscope itemtype="https://schema.org/Book">
      <span itemprop="name"> Inbound Marketing and SEO: Insights from the Moz Blog</span>
      <span itemprop="author">Rand Fishkin</span>
    </div>

    To this book-schema bit:

    <div itemscope itemtype="https://schema.org/Book">
      <span itemprop="name">{{name}}</span>
      <span itemprop="author">{{author}}</span>
    </div>

    When the bit is used in a custom book shortcode you can use it on your site like so:

    [book name="Inbound Marketing and SEO: Insights from the Moz Blog" author="Rand Fishkin"]

    • This reply was modified 7 years, 4 months ago by Rik Schennink.
    Plugin Author Rik Schennink

    (@pqina)

    Please let me know if the above solution did not solve the problem, will mark as solved for now.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Schema mark up in shortcode’ is closed to new replies.