How do i truncate content length to 500 words?

You could use a WordPress filter callback function. In your theme’s directory, create a file called functions.php and add the following in: <?php add_filter(“the_content”, “plugin_myContentFilter”); function plugin_myContentFilter($content) { // Take the existing content and return a subset of it return substr($content, 0, 500); } ?> The plugin_myContentFilter() function will be called each time you request … Read more

replace control character ascii into page

first workaround: Edit the page under wordpress classic editor and copy (ctrl-C) the whole to the clipboard. Open the vim editor Copy (ctrl-V) the clipboard to the vim window Replace all control characters with a space    :%s/[^@-^M]/ /g (ie ctrl-V ctrl- @ and ctrl-V ctrl-M) Overwrite the page content in wordpress with the new … Read more

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