Hi Friends, WooCommerce by default does display a “Read more” message instead to “Out of stock” for all out of stock products. If you would like to display “Read more” text as ‘Out of stock’ then you can do it without any technical knowledge . You will need to add given below code into your
Posted by WordPress Experts on December 24, 2013 1090 Views Share on
Hello Everyone! After migrating a WordPress site to a new URL either live or to a production or development server, the new URL strings in the mysql database need to be changed and updated in the various mysql database tables. This method just uses the whole mysql database rather than a WordPress export/import from within, and
Hello Everyone! Hope you all are doing well :) I am here going to tell you all my friends for how to create a custom own RSS Feed using hooks in wordpress site. its actually very easy to do – easy peasy. all you have to do is add a new function to the function.php
Hello Friends! If you want to create a own custom shortcode in your wordpress website, then don’t worry just use my code. function my_function( $atts ) { return "My Name is = {$atts['content']}"; } add_shortcode('myname', 'my_function'); For register you new shortcode ,just need to add this code in your themes function.php file Your shortcode
Hello Everyone! If you want to display the post lists from a specific category, then don’t worry i am here for you only. just use my code (given below) . For do this you have not require any technical knowledge, just copy and paste my code. <ul> <?php //
Hello Everyone! If you want to retrieve the name of a category from its ID, then just use my code anywhere in your theme files where you want to show the category title. <?php echo get_cat_name(1); //here 1 is the cat id ?> Enjoy Code! and share my blog with your friends.
Hello Everyone! I am come back with a new information. If you are planning to set a different-2 custom message for registered and guest user then use my code given below : <?php if ( is_user_logged_in() ) { //go here when user is logged in //message for registered user echo 'Welcome, registered user!'; } else { //Go here when user not
Hello Everyone! I am here going to tell you all my friends for change the the admin login page logo Here is the snippet to change the logo on the login screen. All you have to do is copy this code into your functions.php file and change the image to the image you want to
hello everyone If you are planning to create a custom post type then use my code, hope you will enjoy my code. Add this code in your theme function file add_action( 'init', 'create_post_type' ); function create_post_type() { register_post_type( 'R_News', array( 'labels' => array( 'name' => __( 'News' ), 'singular_name' => __( 'News' ) ), 'public'
Hello Everyone! if you are planing to add your custom menu from anywhere in post,then add this code in your theme function file. /* Custom code for call menu any where [menu name="Site-Map"]*/ function print_menu_shortcode($atts, $content = null) { extract(shortcode_atts(array( 'name' => null, ), $atts)); return wp_nav_menu( array( 'menu' => $name, 'echo' => false )