The first step is to create the shortcode. To do so, open your functions.php file and paste the code below in it: function wps_trend($ atts){ extract( ... Read More
Just add the following snippet to the functions.php file of your WordPress theme and specify the post or page ID desired. function wps_force_ssl( $ force_ssl, $ ... Read More
Simply paste the function below into your functions.php file: function hasgallery(){ global $ post; return (strpos($ post->post_content,'[gallery') !== false); } Once done, you can use it ... Read More