New answers tagged

0

Ok, in case somebody else needed a solution, I have figured it out. The problem was that Events Calendar Pro stores checked values of multiple checkboxes in one single string delimited by the pipe symbol. Just imploding the sanitized field fixes the problem: if ( isset( $sanitized_values['special_acts'] ) ) { $salva = ...


0

Yes, we can use existing tables in WordPress for storing the values. Post meta fields are stored in the {$wpdb->prefix}_postmeta table (depending on the table prefix; wp_postmeta by default). If the meta key "like_count" is already present in the table along with the post ID then update_post_meta() will update this, and otherwise this function will insert ...


0

The post meta (also known as custom fields) helps us to associate more content with a post. This content could be anything you want to associate with your post, in your case "likes". So yes your wp_postmeta table should get modified when you use update_post_meta function. This is the structure of the wp_postmeta table CREATE TABLE IF NOT EXISTS ...



Top 50 recent answers are included