Support » Plugin: WPSSO Core | Complete Meta Tags and Structured Data SEO for WordPress » Can’t get schema to set as local biz?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter webjive

    (@webjive)

    Figured it out.. This function was bungling the schema data for my site

    add_filter( 'post_class', 'post_class_remove_hentry' );
     
    function post_class_remove_hentry( $post_class ) {
            $post_class = array_diff( $post_class, array( 'hentry' ) );
            return $post_class;
    }

    This worked on other sites but, messed my schema info up for some reason. Thoughts?

    Plugin Author JS Morisset

    (@jsmoriss)

    The support forums on wp.org are limited to Free / Standard version support. Please make sure your questions and comments are limited to the Free / Standard version. 😉

    By default, WPSSO Core adds WebSite and Organization markup to the home page. See the SSO > General > Google tab to enable / disable.

    If you choose to keep the Organization markup, you may wish to use the WPSSO ORG add-on to define additional properties for your site’s home page organization.

    js.

    Plugin Author JS Morisset

    (@jsmoriss)

    hentry is an old template-based markup standard. I would suggest you remove hentry and use something better, like Schema JSON-LD markup.

    See here for more info: https://wpsso.com/docs/plugins/wpsso/notes/developer/filters/examples/remove-hentry-from-theme-templates/

    js.

    Thread Starter webjive

    (@webjive)

    Thanks, was the second plugin I installed. Same results, website vs local biz.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Can’t get schema to set as local biz?’ is closed to new replies.