Support custom fields (serialized arrays)
-
Hey,
I wonder how to create a condition based on a postmeta value that is saved in the db as a serialized array.
I’d like to check for a custom postmeta that is created by the theme (to hide the page title actually) but when using it for a custom condition and enabling debug mode, it says something like this:DynamicTag-Tag: post-custom-field DynamicTag-Key: DynamicTag-Value: <br /> <b>Warning</b>: preg_match() expects parameter 2 to be string, array given in <b>/home/www/stage/wp-includes/class-wp-block-parser.php</b> on line <b>417</b><br /> <br /> <b>Warning</b>: strlen() expects parameter 1 to be string, array given in <b>/home/www/stage/wp-includes/class-wp-block-parser.php</b> on line <b>489</b><br /> Check-Value: remove-title Check-Value2: Condition-Type: default Condition: Hide if contains Condition met: no
I suppose this serialized postmeta is returned as array then but matching is done as if it would be a string.
anyway, is it currently possible with this plugin?
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Support custom fields (serialized arrays)’ is closed to new replies.