Template Part WP Action Doesn't Filter Properly

The Name dropdown on the WP Action shows names from all slugs, not just those in the selected slug.

For example, in the screenshot below, the only names that should show for the given path/slug template-parts/layout/layout should be ‘contained,’ ‘fullwidth,’ and ‘sidebar.’ Instead, it’s showing all available names, including those with different paths and slugs.

This appears to be a display/convenience issue only and doesn’t seem to affect functionality.

This (and similar) dropdowns are a bit dumb. They just list items found in the same action parameter elsewhere in the project. They don’t do any extra logic to give only actual template parts.

1 Like