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.

Target post type edit page to change view post button, how do I?

»View Post« Button There’s a filter that you can use with a simple str_replace. Not the best solution, but there’s no other one: apply_filters(‘get_sample_permalink_html’, $return, $id, $new_title, $new_slug) »Preview« Button For the »Preview« Text, there’s not filter (only for the link target), but you can take a look at this Answer by @toscho on how … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)