Changes between Initial Version and Version 1 of Ticket #32290
- Timestamp:
- 05/07/2015 03:44:08 PM (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #32290
- Property Keywords close added
-
Ticket #32290 – Description
initial v1 7 7 8 8 First trial, i use 9 {{{ 9 10 $count = get_post_meta('20', $count_key, true); //example the $count is 11 10 11 $count++; //to be 12 11 12 update_post_meta('20', 'post_views_count', $count); //on database is 13 12 13 }}} 13 14 2nd trial, i use $wpdb->get_results and $wpdb->update, I got the same result. 14 15 15 Finally i trace and got the problem is on wp_head() in rel=next. So after remove it using remove_action( 'wp_head', 'adjacent_posts_rel_link_wp_head' ); i got the correct result 16 Finally i trace and got the problem is on wp_head() in rel=next. So after remove it using `remove_action( 'wp_head', 'adjacent_posts_rel_link_wp_head' );` i got the correct result 17 {{{ 16 18 $count = get_post_meta('20', $count_key, true); //example the $count is 11 17 19 $count++; //to be 12 18 20 update_post_meta('20', 'post_views_count', $count); //on database is 12 21 }}}