Copy the following snippet and edit the message on line 5. Once done, paste it on your functions.php file and save function wptutsplus_text_after_title( $post_type ) { ... Read More
Simply drop this snippet in your functions.php or a plugin. function __my_registration_redirect(){ return home_url( '/my-page' ); } add_filter( 'registration_redirect', '__my_registration_redirect' ); Thanks TheDeadMedic for the tip! ... Read More
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
Let’s start by creating the function. The code below have to be pasted into your functions.php file. <?php function author_excerpt (){ $ word_limit = 20; // ... Read More