This is the new best way to upgrade npm on Windows. Follow below steps Go to Window Type Run PowerShell and open as Administrator First: Run command -> Set-ExecutionPolicy Unrestricted -Scope CurrentUser -Force Secondly: npm install -g npm-windows-upgrade and then npm-windows-upgrade Note: Do not run npm i -g npm. Instead use npm-windows-upgrade to update npm going forward. Also if […]
Here is code to send pdf file attachment to user using contact form 7. 1076 is contact form 7 ID and tdsfile form field is having PDF url form local server (http://localhost:90/pidi/wp-content/uploads/2015/09/test.pdf) which i want to send as attachment.
Here is code snippet to display selected category names of custom post type in wordpress. To get the categories of a custom post type you have call get_the_terms() and setup the registered category name like this <?php $terms = get_the_terms( $post->ID , ‘myposttype_category’ ); foreach ( $terms as $term ) { echo $term->name; } ?>
Now wordpress takend 25 % of market share as per Web technology surveys http://w3techs.com/technologies/history_overview/content_management/all/y In 2003 Matt Mullenweg and Mike Little fork b2 and created WordPress. As wordpress freelancer we seen tremendous growth in wordpress usage since 2011. Three main aspect of wordpress is Its Lightweight, Simple User & SEO friendly. Historical yearly trends in […]
Here is code to disable WordPress all update notification
Here is hook code for wordpress to edit rel attribute of the_category link in wordpress
Below is snippet code to display second level menu in wordpress. Put below php code into your theme/functions.php file add_filter( ‘wp_nav_menu_objects’, ‘my_wp_nav_menu_objects_sub_menu’, 10, 2 ); // filter_hook function to react on sub_menu flag function my_wp_nav_menu_objects_sub_menu( $sorted_menu_items, $args ) { if ( isset( $args->sub_menu ) ) { $root_id = 0; // find the current menu item […]
Here is code restrict user other than administrator to acess wp-admin in wordpress. Put below code into your theme/funtion.php file
Here is way to reset user id in wordpress for new signup registration. First Delete all your unwanted users from backend. Now go to phpmyadmin to acess you database. Click on SQL tab from top and Enter below SQL COMMAND and Click GO button. ALTER TABLE wp_users AUTO_INCREMENT = 15 That’s it.
Here is way to manage your wordpress comments using php mysql queries. Some things to note Don’t forget to do a backup of your database before testing any of the queries below. Don’t forget to change the default table prefix wp_ by the one used by your database. Delete all spam comments When you have over 100,000 […]
Here is code for change/ overwrite wordpress backend thankyou message. Put this code into your current theme function.php file
Here is code to change wordpress backend login logo. Put this code into your current theme function.php file.
here is code to disable wordpress backend update notification. put this into your current theme function.php file
Here is snippet to add own style css into wp-admin backend using theme function hook.
I hope this tips will help you as wed designer to reduce files size by removing empty lines from file using notepadd++ Just Write “^s*” in Find Text box and replace with blank.
here is code which i done after searching over google with help of different website. Condition php code