Tag Info

Hot answers tagged

2

WordPress 4.3 have no markdown implementation, it is only a short list of shortcuts. The shortcuts active on default. It give no UI area to active/deactivated them. As small hint for updates posts. I seen often, that works only on new posts, no old drafts. But I haven't debug this. Which Formatting Shortcuts WordPress 4.3 came with a new feature called ...


2

Like this: function custom_js_to_head() { ?> <script> jQuery(function(){ jQuery("body.post-type-YOUR-CUSTOM-POST-TYPE .wrap h1").append('<a href="index.php?param=your-action" class="page-title-action">Import from ...</a>'); }); </script> <?php } add_action('admin_head', 'custom_js_to_head'); ...


1

Depending on your needs, WP Query may not work for this since it won't include posts that have been deleted after the trash has been emptied. This should work (but hasn't been tested): function wpse_custom_post_type_counter() { $number = get_option( 'wpse_custom_counter' ) ? absint( get_option( 'wpse_custom_counter' ) ): 0; $number++; ...



Only top voted, non community-wiki answers of a minimum length are eligible