How to add a custom field and incrementing value for all the published posts
It works … here is the code function updateNumbers() { /* numbering the published posts: preparation: create an array with the ID in sequence of publication date, / / save the number in custom field ‘article’ of post with ID / / to show in post (within the loop) use <?php echo get_post_meta($post->ID,’article’,true); ?> / … Read more