How to add custom HTML markup and classes to the_content()?

This sounds like something that should be handled in CSS without using classes, for examples article blockquote { background-color: #fff; } Instead of adding .bg-white to the HTML tag. If you really want to add custom classes you could use a filter or get_the_content() and parse it manually.

Escaping Issues

The point of escaping is to make sure that when a value is output, it cannot output anything malicious, or that would just break the markup of the page. For example, when outputting a variable, you will want to escape certain characters so that the value can’t unintentionally open or close HTML tags, which could … Read more

Gravity Forms – Prevent Multiple Form Entries Same User ID with Same Field Value

https://gravitywiz.com/documentation/gravity-forms-limit-submissions/ Gravity Perks is a great addon to gravity forms that does a lot of cool things. This particular add on would solve this problem – plus they have great support. I found this on github – I gave it a try and it didn’t break my site: https://github.com/uamv/gravityforms-custom-entry-limit Not sure if that means per … Read more

Query Problem in Clustom Plugin

It looks like your SQL succeeded to me. So I guess your problem is that you’re getting an array of results (which is probably an array of arrays: rows, then columns per row) when you were expecting a single scalar value. Try using get_var() to get a single value from the database: $DBPresults = $wpdb->get_var( … Read more

500 error after upgrading from 5.0 to 5.4 and adding empty functions.php

I’ve managed to print the error message by adding the following to the functions.php: function exception_handler($exception) { echo “Uncaught exception: ” , $exception->getMessage(), “\n”; } set_exception_handler(‘exception_handler’); For some reason logs did not include the error details before. The error is call to undefined function is_blog_installed() which I have no idea why’s that. 😀