How to keep sharing stats after creating 301 redirects?

Got it. I was already using the Advanced Custom Fields plugin so I just created a custom field called “old_url” with that. Then I created a function: function sharingurl () { if(get_field(‘old_url’) == “”) { echo untrailingslashit(get_permalink()); } else { echo get_field(‘old_url’); } } Then I just included <?php sharingurl(); ?> in the data-href and … Read more

Creating Tables in WordPress Database

It may be a wrong approach, but without creating a plugin, one of my seniors, once did a WordPress Shopping Cart project by creating extra tables for her custom purposes. What she did is to follow the other existing tables in WordPress database. Suppose what wp_posts table has by default is an ID. She opened … Read more

Posted date format not reflected

I found a workaround by myself. In wp-content/themes/twentythirteen/function.php: function twentythirteen_entry_date( $echo = true ) { : //$date = sprintf( ‘<span class=”date”><a href=”https://wordpress.stackexchange.com/questions/112514/%1$s” title=”%2$s” rel=”bookmark”><time class=”entry-date” datetime=”%3$s”>%4$s</time></a></span>’, $date = sprintf( ‘<span class=”date”><a href=”https://wordpress.stackexchange.com/questions/112514/%1$s” title=”%2$s” rel=”bookmark”><time class=”entry-date” datetime=”%3$s”>%3$s</time></a></span>’, x %4$s o %3$s Still, it doesn’t seem to reflect the choice of the date-format setting made on wp.