Put the function below in your functions.php file, then use it inside the loop in your template files. function get_link_url() { $content = get_the_content(); $has_url = ... Read More
Simply paste this code into your function.php file. Edit lines 4 and 5 at your convenience. function wps_change_role_name() { global $wp_roles; if ( !isset( $wp_roles ) ... Read More
Paste the code below on any files, where you’d like to display the WP Query variables. global $wp_query; var_dump($wp_query->query_vars); Thanks to WP Mix for the tip! ... Read More
Simply paste the code below where you’d like to load posts from the current week. Then don’t forget to display the results as desired. $query_args = ... Read More