How to retain last modification date on draft edit
How to retain last modification date on draft edit
How to retain last modification date on draft edit
You can use the Stackexchange Editor with the WP-Markdown Plugin, created by Steve Harris in this Question.
Empty paragraphs around figure and figcaption tags when using markdown
The get_edit_post_link filter lets you modify that value. This is applied any time get_edit_post_link function is called, which admin uses, as well as themes on the front end. function wpd_edit_post_link_filter( $link, $post_ID, $context ){ if( ‘room’ == get_post_type( $post_ID ) ){ $link = $link . ‘&fubar=baz’; } return $link; } add_filter( ‘get_edit_post_link’, ‘wpd_edit_post_link_filter’, 10, 3 … Read more
I think I am following your question. You can enqueue a stylesheet only for the admin area and then add your styles to that. The following code will enqueue a stylesheet in a “css” folder in the root of your theme. function my_admin_styles(){ wp_enqueue_style( ‘admin_css’, get_stylesheet_directory_uri() . ‘/css/admin-styles.css’, array(), filemtime( get_stylesheet_directory() . ‘/css/admin-styles.css’) ); } … Read more
Some themes provide modified support for the read more tag, even when it is added in text mode as @Sally-CJ suggested… When there is modified support for the read more tag you need to contact the theme developer to find out how to get it to work as you are expecting it to.
Confirmation message when submitting post for review
Search for a filter on ‘user_can_richedit’. Remove that code from the theme. This is a perfect illustration for the argument that themes should do as little as possible. 🙂 The code will probably look like this: add_filter( ‘user_can_richedit’, ‘__return_false’ );
WordPress already does this by default, so long as that page doesn’t have any existing content. Plus it adds a notice explaining why the editor isn’t there. These are the lines already in WordPress Core: if ( $post_ID == get_option( ‘page_for_posts’ ) && empty( $post->post_content ) ) { add_action( ‘edit_form_after_title’, ‘_wp_posts_page_notice’ ); remove_post_type_support( $post_type, ‘editor’ … Read more
author of WP Native Articles here. This is normally a problem with other plugins incorrectly messing around with tag incorrectly and preventing it from setting the correct URL. If you save this code below as a separate file, upload it as a plugin and activate it it should fix it. <?php /** * Plugin Name: … Read more