Custom Layout Type doesn't reflect in the Conditional Logic
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 306
- Forks
- 88
- Avg merge
- 2d 16h
- Merged PRs (30d)
- 12
Description
Hi there!
While working with the Custom Layouts, I noticed something that might be confusing. If I select from the modal a Single Post layout, when I enter the editor inside the conditional logic dropdown, I have all the options.
For example, even if I picked a Single Post layout, I can still insert a condition like Page is equal to About:

Then, when I go on the About page, of course, nothing appears:

And also, nothing appears when I open a single post either:

Do you think it would be better to control the conditions so that only the ones relevant to the templates to be visible?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No files, tests, or entry points are named in the issue. Reproduce the modal and editor flow with a Single Post layout and a Page/About condition, then verify that available conditions match the selected layout and that the resulting layout appears in the relevant view.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- frontend, web-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100