Harrisonm

Redirect contact form 7 to thank You page in Landing page

As you know, Contact Form 7 redirects to the same URL as the form’s URL after form submissions in the default settings. However, in very rare cases, you might need to change this to make it redirect to another URL after submissions. I’ll write in this post how you can...Read more …
Ajit N

How User can Add Post Data From Front?

WordPress provide plugin User Submitted Posts for add post data from user dashboard. User Submitted Posts (USP) adds a frontend form via template tag or shortcode that enables your visitors to submit posts and upload images. Just add the following shortcode to any Post, Page, or Widget: [crayon-58ab8ca13ee8c465697799/]Read more …
keithg

Quick tip: Use wp_trim_words() to limit words in WordPress

Using wp_trim_words() allows us to limit the title and excerpt, and anything else really, to a particular number of words. How practical a name. You can define the number of words to limit them to, and also define what you’d like the “more” text to be. My example just uses...Read more …
keithg

How to add css and js using Hook in wordpress

Hook. Add Below code in function.php add_action(‘wp_enqueue_scripts’, ‘function_name’); function function_name(){ wp_enqueue_style( ‘style-id’, get_template_directory_uri() . ‘/css/style.css’); wp_enqueue_script( ‘js-bxslider’, get_template_directory_uri() . ‘/js/jquery.bxslider.min.js’); } Output: <link rel=’stylesheet‘ id=’style-scoccer-css‘ href=../wp-content/themes/themename/css/style.css?ver=4.5.1‘ type=’text/css‘ media=’all‘ /> <script type=’text/javascript‘ src=’../wp-content/themes/themename/js/jquery.bxslider.min.js?ver=4.5.1‘></script> You can add more css and js in function.Read more …