Skip Navigation

Conditional output based on missing parent field value

Resolved

Reported for: Toolset Views 2.3

Resolved in: Toolset Views 2.3.1

Symptoms

The wpv-conditional shortcode produces a conditional output based on some data comparisons. Views 2.3 introduced the ability to compare against fields values from a related post type.

When trying to compare against a field value from a parent post type, if the parent post type does not have a field matching the one in the comparison, the shortcode will fail to evaluate the condition.

Workaround

This problem will get solved in the next version of Views.

On the meantime, this patch can be applied by just uploading the file it contains and replacing the one with the same name, located in /embedded/inc/.

Comments are closed