• Resolved David Corradini

    (@davouid)


    I must say I’m struggling with it is there a way to display them in wp query?
    I guessed a simple the_content() would do but not…

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Pascal Birchler

    (@swissspidy)

    Hi there,

    The upcoming version 1.5.0 release of the plugin will contain various features for more easily querying and displaying stories in creative ways.

    We’ll publish some developer documentation for this soon that will explain this in detail.

    Thread Starter David Corradini

    (@davouid)

    Great News.
    Looking forward to this

    Thread Starter David Corradini

    (@davouid)

    But as for now i can’t simply query directly le web stories and display them with the content?

    The idea is a custom block (ACF) where we choose the stories.
    Then a output these with a simple query.

    For now i need to embed the stories in a post and query these posts?
    Right?

    I need custom markup around my stories…

    Plugin Author Pascal Birchler

    (@swissspidy)

    Well, what kind of markup do you need, how do you want to display the stories?

    In the newly released version 1.5.0 of the plugin there is now a \Google\Web_Stories\render_stories() function that you can use to query and display stories in various ways (as circles, list, grid, etc.). Does that work for you?

    There is also a way to use your own custom markup for displaying stories.

    As mentioned, we’re still working on documentation for all of this.

    > The idea is a custom block (ACF) where we choose the stories. Then a output these with a simple query.

    Note that the built-in Gutenberg block now lets you do exactly this.

    Thread Starter David Corradini

    (@davouid)

    What I did is that

    https://www.dropbox.com/s/zlmidw2h3i9g9da/dc_screen_shot%202021-03-23%20%C3%A0%2017.20.25.mov?dl=0

    My stories are in a slick slider… and I want to have the hand on the styles…

    But I had to add them each to a new post for my query to display them properly….

    Plugin Author Pascal Birchler

    (@swissspidy)

    Thanks for sharing the video, very helpful!

    I do think you should really be considering the Web Stories block to display stories in a slider/carousel like this.

    If you want to use your own markup and styles check out the documentation we’ve now added here: https://github.com/google/web-stories-wp/blob/main/docs/web-stories-embeds.md

    Using a custom renderer allows you to display stories in any way you’d like, for example as images or as amp-story-player instances.

    Thread Starter David Corradini

    (@davouid)

    Thanks

    Exactly what I need.

    @davouid Glad to hear this fits your needs! We will mark this topic as resolved. Feel free to open a new support topic should you have further questions or encounter any issues.

    If you have a spare moment to share your feedback about Web Stories, we would love to hear it. Thank you!

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Query the stories’ is closed to new replies.