nxt_field_value_raw() returns what is actually in the database, with no formatting and no regard for conditional logic. It is the function to reach for when the formatted getter returns nothing and you need to know why.
What It Does
Where nxt_field_value() applies the field’s return format and honours its conditional logic, the raw version does neither. It is a debugging tool first and a data tool second.
Before You Start
- Nexter Extension is active.
- You know the field’s Field Name.
- You are editing a template or a plugin.
Use the Raw Value
- Call
nxt_field_value_raw()with the field name and an optional object.
- Expect the stored shape, not the formatted one — an image field gives you whatever was saved, not a URL.

- Use it to confirm a value exists when the formatted getter returns null.
- Prefer
nxt_field_value()for normal rendering, so return formats keep working.
Display the Value
Comparing the two is usually the fastest diagnosis:
<?php
var_dump( nxt_field_value( 'price' ) ); // formatted, respects conditions
var_dump( nxt_field_value_raw( 'price' ) ); // exactly what is stored
// every raw value on the object
$all = nxt_field_values_raw();
Limitations
- No return format is applied, so you handle the stored shape yourself.
- Conditional logic is ignored, so you can read a value the editor cannot currently see. Be deliberate about whether that is what you want to render.
- Serialized values come back as PHP arrays, not as the tidied structures the formatted getter produces.
Troubleshooting
Raw returns a value and the normal getter returns null
The field’s conditional logic is not met. That is the formatted getter working as designed.
Both return nothing
Then nothing is stored. Check the field name and that the post was saved.










