Archived topic
Dynamic content in header block element
3 replies · Started by The Lucky Tofu on June 22, 2021
We're using the Donate site as a basis to design our new website.
Now we want to change the hero on the front page from static to dynamic content. We'd like to show the latest post (image and titel) from a specific category in this header block element.
Any idea how we can do this?
Thank you!
Hi there,
Block Elements dynamic data cannot make a request for that kind of content. Its limited to current post, post meta or next/previous post - you can't specify the query required to do that ( at this time ).
You would need to use a plugin like WP Show Posts to create the post content, and add the shortcode it provides to the block element.
Perfect! Thank you!
We made it with th WP Show Post plugin.
Glad to hear that!