• Resolved GWKaplan

    (@gwkaplan)


    I’m redisigning a web with thousands of posts and custom post types. The original site was made with a traditional theme before FSE. I’m developing a block child theme for it, I have to respect the existing content. So I need to keep certain plugins and functionality. But to give the new child theme a better user experience, I need to differentiate the existing content from the new content. My question is: Is there a way to apply a template to existing (old) posts and another template to new created posts? The two approaches I can think of are to apply a different template based on the date of creation, or to automatically assign to new created posts a certain category and automatically apply a different template to posts with that category. If someone can help with one of the two possibilities or has a different approach, I will appreciate their advice. Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter GWKaplan

    (@gwkaplan)

    I’m trying with wp_insert_post() and update_post_meta(), but can’t figure out how to name the template, because new-template.php is not available in block themes.

    Thread Starter GWKaplan

    (@gwkaplan)

    Solved

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