[Resolved] Feature Request: Author as Organization

Home Forums Support [Resolved] Feature Request: Author as Organization

Home Forums Support Feature Request: Author as Organization

  • This topic has 3 replies, 2 voices, and was last updated 4 years ago by Tom.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #910277
    Longinos

    Hi
    In the file generatepress/inc/markup.php the CreativeWork SD is set allways to Person and some times this can be an Organization.

    #910595
    Tom
    Lead Developer
    Lead Developer

    Hi there,

    Try this:

    add_filter( 'generate_post-author_microdata', function() {
        return 'Organization';
    } );

    Adding PHP: https://docs.generatepress.com/article/adding-php/

    Let me know 🙂

    #910968
    Longinos

    Hi Tom
    Your filter don´t generate output to the author item in CreativeWork, but put me on the road. This worked:

    add_filter( 'generate_post-author_microdata', function() {
        return  'itemprop="author" itemtype="https://schema.org/Organization" itemscope';
    } );
    #911320
    Tom
    Lead Developer
    Lead Developer

    Ah, sorry about that! Glad you found the solution 🙂

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.