Bricks's frontend.php template_redirect() permanently redirects any /template/* URL to the homepage (site_url(), 301) when : - is_singular(bricks_template) - !current_user_can_use_builder() - !isset(bricks_global_settings.publicTemplates) - !maintenance mode This kicks in BEFORE the Bricks builder check can run, so clicking "Edit with Bricks" on a template ends up redirected to home → admin URL → Bricks's own builder.php sees current_post_type as empty (because the post wasn't actually queried before the redirect) → final redirect to wp-admin/edit.php?post_type=&bricks_notice=error_post_type with the "Invalid post type" notice. Setting bricks_global_settings.publicTemplates = '1' disables this preemptive redirect. Templates stay excluded from search but their permalinks resolve normally → builder can attach. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1.4 KiB
1.4 KiB