For Change post excerpt length add following code in your current themes functions.php file.
Create a load more button to show additional posts or custom post types using AJAX following code in your current theme. 1. Set load more button in your post loop and pass paged parameter in post argument. Load More This will display two post per page. 2. Then you have to add the following code […]
To create an options page, open up your current themes functions.php file and add the following code: Without passing any parameters to this function, the default options page will be added to your wp-admin sidebar.
Simple shortcodes Shortcode functions can be added to plugin code or your theme’s functions.php file. If it’s the latter, I’d recommend creating a separate wc-shortcodes.php file, then adding include(‘wc-shortcodes.php’); to functions.php. You can use below code to include file wc-shortcodes.php. If the shortcode produces a lot of HTML then ob_start can be used to capture […]
Use Following Code in your current themes functions.php file it removed website url field from comment form.
If you want to put the comment field after all other fields are loaded. Add the following code in your current themes functions.php file.
you will need to add the following code to your current themes functions.php file
For remove wordpress post editor add following code in your current themes functions.php file.
Use Following Code for get current location by ip address. We can get current location of user by following code.