Fix bug with Ordo theme
Date: November 12, 2020
Fixes a bug with the Ordo theme where the frontpage gets reset to null:
$homepage = get_page_by_title( ‘Front…
Fixes a bug with the Ordo theme where the frontpage gets reset to null:
$homepage = get_page_by_title( ‘Front…
Track CPU time for PHP script:
Reference: https://stackoverflow.com/questions/535020/tracking-the-script-execution-time-in-php
If you have a Ruby script and wish to hide certificate errors just add this on top of the…
Add this to functions.php to achieve it:
function mytheme_custom_excerpt_length( $length ) {
return 20;
}
add_filter( ‘excerpt_length’, ‘mytheme_custom_excerpt_length’, 999 );
…
Pull the result of a cURL query via PHP.
Useful for parsing JSON APIs
$ch = curl_init();curl_setopt($ch,…