-
Insensitive “contains”
You can actually change the behaviour of jQuery selector, for example, if you want “contains” to be insensitive, you can add this to your js file. Then in your jQuery code, you can target and hide everything that any div that contains “examPLE”, “EXampLE”, “example”…etc with the follow selector.
-
Replace URL during migration
If the target server has wp-cli installed, you can use the following command. The “–dry-run” makes sure no changes would be made, so you can do a test run first. When you are ready to make the replacement, simply remove the “–dry-run” and run the command again. If you have no ssh access or wp-cli […]
-
“Sticky” in Listing Grid
“Sticky” by default is only available for “post” type. When we want to do it for CPT, the common suggestion is to create a new field for that purpose, but that also mean you will have retrospectively add a value to all posts existed before you add the field as well, because of how SQL […]
