Wow. For a moment there, I didn’t think …

Wow. For a moment there, I didn’t think it’d be this simple, but I seem to have found a way to “dynamically replace” a Post Excerpt block with a Post Content block.

Why? So I can show excerpts for most posts, and the full content for “notes” (a custom post type). In, e.g., search results or tag archives.

https://ochtendgrijs.be/?s=FIRE

Likes, Bookmarks, and Reposts

  • Carsten Bach

3 responses to “Wow. For a moment there, I didn’t think …”

  1. Otto

    @janboddez are you talking about using a block theme? Or a classic old style theme?

  2. Jan Boddez

    This is vaguely related to this here issue: https://github.com/WordPress/gutenberg/issues/53049

    #PostFormats

    My “solution” (for custom post types) looks like this: https://github.com/janboddez/indieblocks/commit/e8eeb8a38f1d55db1ab8a5071ed968e14ad96d66.

    You still can’t switch the entire post template […]

  3. Jan Boddez

    Block theme.

    I mean, I was under the impression this isn’t yet possible in core (i.e., mix and match post types, or rather, the way they’re […]

Leave a Reply

Your email address will not be published. Required fields are marked *