You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Output meta fields only on child pages for the specified specific page
Actual Behavior
The nesting level and parent page are not defined.
If the condition is ->where( 'post_parent_id', '=', 0 ), then the fields will be displayed on all pages, including on child pages (having a parent page).
Also, when using ->where( 'post_level', '=', 0 ), the field is always output, including on child pages.
When specifying ->where( 'post_level', '=', <ANY_NUMBER>) or ->where( 'post_parent_id', '=', <ID_PARENT_PAGE> ) the fields are not output anywhere.
I will supplement it.
Conditions: child page, condition for fields "->where( 'post_level', '=', 1 )" ( only the first level, not child ones), fields should not be output.
What happens: the CarbonFields fields are output, the input values are not saved. On the pages of the first level, the fields are displayed, their values are saved.
Removing the condition "->where( 'post_level', '=', 1 )". Result: fields are displayed everywhere, all values are saved as they should be.
Version
Expected Behavior
Output meta fields only on child pages for the specified specific page
Actual Behavior
The nesting level and parent page are not defined.
If the condition is
->where( 'post_parent_id', '=', 0 )
, then the fields will be displayed on all pages, including on child pages (having a parent page).Also, when using
->where( 'post_level', '=', 0 )
, the field is always output, including on child pages.When specifying
->where( 'post_level', '=', <ANY_NUMBER>)
or->where( 'post_parent_id', '=', <ID_PARENT_PAGE> )
the fields are not output anywhere.Container definition
Comments
I'm sorry, I'm using a translator to communicate with you. There may be problems with the translation of phrases.
The text was updated successfully, but these errors were encountered: