[Plugin: Posts 2 Posts] Blank meta_value values in wp_p2pmeta
-
I am running Posts 2 Posts v1.1.5 and have a connection between Recipe and Ingredient custom post types whereby a user can create a recipe and add multiple ingredients. In p2p_register_connection_type I have three additional fields (one text field, two drop downs). Though the user may only populate one of the fields, all three are written to the wp_p2pmeta table, with the non-populated fields having a blank meta_value.
Is there a way to stop creating wp_p2pmeta entries for blank values? Perhaps if it is not a setting that I can invoke with a “‘save_blanks’ => false” sort of setting it could be in future releases? Or no setting but all blank values are ignored by default when inserting/updating the wp_p2pmeta table.
Thanks for your help. This plugin has been a saving grace for WordPress as it has stopped me from building my site with a more complex framework.
- The topic ‘[Plugin: Posts 2 Posts] Blank meta_value values in wp_p2pmeta’ is closed to new replies.