# Template Part WP Action Doesn't Filter Properly

**URL:** https://forum.pinegrow.com/t/template-part-wp-action-doesnt-filter-properly/8281
**Category:** Bug Reports
**Tags:** wordpress
**Created:** [August 3, 2023, 9:31pm UTC](https://forum.pinegrow.com/t/template-part-wp-action-doesnt-filter-properly/8281 "2023-08-03T21:31:45Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![adamslowe](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/adamslowe/32/4590_2.png) [@adamslowe](https://forum.pinegrow.com/u/adamslowe)
#### Post date: [August 3, 2023, 9:31pm UTC](https://forum.pinegrow.com/t/template-part-wp-action-doesnt-filter-properly/8281/1 "2023-08-03T21:31:45Z")

</div>

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.

 ![image](https://canada1.discourse-cdn.com/flex036/uploads/pinegrow/original/2X/3/34d5b2a8b4f48b27bf59c3c924c3d73c32ee69b7.png)

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

---

<div class="post-metadata">

### Author: ![matjaz](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/matjaz/32/5_2.png) [@matjaz](https://forum.pinegrow.com/u/matjaz)
#### Post date: [August 4, 2023, 3:24pm UTC](https://forum.pinegrow.com/t/template-part-wp-action-doesnt-filter-properly/8281/2 "2023-08-04T15:24:27Z")

</div>

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.
