Codeinwp / Codeinwp/neve

Custom Layout Type doesn't reflect in the Conditional Logic

Open
#3,929 4 comments 0 reactions 0 assignees View on GitHub

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:
image
Then, when I go on the About page, of course, nothing appears:
image
And also, nothing appears when I open a single post either:
image

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.