inside in editor

This is entirely possible, as I just tested it in WordPress. Create your unordered list Add four items: “First list,” “Second list,” “Sub Second List,” “Third List” Place the cursor on “Sub Second List” and click Indent (you will need to expand the kitchen sink to access the indent button With the cursor still on … Read more

Change default italic from to in admin editor

Are you sure editor use <i> for italics? I’m almost sure it uses <em>. However, if you want to be absolutely sure there are no <i> in your post content, let editor do what it want and then replace <i> with <em> before creating/updating posts, hooking wp_insert_post_data filter, just like: add_filter(‘wp_insert_post_data’,’replace_em’, 20, 1); function replace_em( … Read more

Which PHP page is the Default Posts Page

home.php is the file in the WordPress template hierarchy which is used for the posts page. However, after looking at the Twentyseventeen theme code on GitHub, there is no home.php file provided which means the index.php will be used instead. Within index.php Twentyseventeen then uses get_template_part to seperate reusable sections of code. The most general … Read more

Why wordpress word count differs from Microsoft word and sites like wordcounter.net

WordPress removes HTML entities, convert connectors (– or em-dash) to spaces, removes unwated characters (General Punctuation, Superscripts and Subscripts, Currency Symbols, Combining Diacritical Marks for Symbols, Letterlike Symbols, Number Forms, Arrows, Mathematical Operators, Miscellaneous Technical, Control Pictures, Optical Character Recognition, Enclosed Alphanumerics, Box Drawing, Block Elements, Geometric Shapes, Miscellaneous Symbols, Dingbats, Miscellaneous Mathematical Symbols-A, Supplemental … Read more

wysiwyg is scrambled

I’d suggest using editor style for your wysiwyg. Add add_editor_style(); to your functions.php and then add a new file called editor-style.css to your main theme directory. Your editor style should reflect the basic css settings like your actual frontend content width, H1, H2, p etc tags styles, margins, image padding adn margins etc. Don’t copy … Read more

show shortcodes in editor

Having stumbled across this (really late), here is the answer as posted on the wordpress forum by MichaelH: <?php global $shortcode_tags; echo “<pre>”; print_r($shortcode_tags); echo “</pre>”; ?> Putting it here so anyone searching here might find it.