Getting 400 Bad request Error when trying to open posts after updating to wordpress 5.0
Getting 400 Bad request Error when trying to open posts after updating to wordpress 5.0
Getting 400 Bad request Error when trying to open posts after updating to wordpress 5.0
WordPress MySQL Search and replace with wildcard?
Turns out the problem (certain pages not updating) had nothing to do with the SSL conversion. The issue was the tmp directory running out of space. As the site is on DreamHost VPS I was able to clear this directory by restarting the server. Pages are now able to update again. Additional debugging steps: set … Read more
Get First paragraph only (from page)
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
how can i take wordpress post as embed?
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
It seems that the original content is unmodified if I access it like this: echo $post->post_content; And I do not save the post in the editor and do not use the visual editor. This is using WordPress 5.4.2.
How delete post_content records of specific category from phpmyadmin
Add data attribute of post_id for Internal links