All Posts By

nhantam

How to Disable the WordPress Upgrade Message in the Dashboard

By | Tutorial | No Comments

There was a huge debate on Digging into WordPress blog whether developers should let their client’s upgrade or not. We believe to educate our clients and encourage them to be self-sufficient therefore we have created an infographic that shows you a step by step guide to upgrade WordPress. For Backing up WordPress, we recommend using BackupBuddy Plugin to our clients. But we do have clients that do not want to deal with maintenance updates, so they want us to take care of them therefore we also have that option available. For these clients, we hide the WordPress Upgrade Message.

All you have to do is simply open the theme’s functions.php file and add this:

add_action('admin_menu','wphidenag');
function wphidenag() {
  remove_action( 'admin_notices', 'update_nag', 3 );
}

 

There are plugins available that does this job, but we prefer to use the code above. Now remember, this only removes the upgrade bar that shows on all screens. It does not disable the Plugin updates or theme update notifications that shows up on the update page. For our clients that have us do the maintenance for them, we make sure that their site is up to date with all plugins, and the core.

Now Jeff Star posed an issue that he has to go in client’s dashboard to see whether plugins and such are activated. Well we already have a fix for that. We are using WP Status Dashboard (Our Tutorial on How to use WP Status Dashboard). This plugin/script lets us view all of our clients information on one screen, so we know exactly what needs to be upgraded on which client.

Remember, keeping your WordPress up to date is essential for site security. So if you do remove the nag, you need to stay on top of the upgrades for your clients.

wordpress remove header footer tag

WordPress custom functionremoving all links in the header and footer

By | Tutorial | No Comments

Does people know how to remove the WordPress JSON API links in the header tag?


<head>
...
<link rel='https://api.w.org/' href='http://example.com/wp-json/' />
<link rel="alternate" type="application/json+oembed" href="http://example.com/wp-json/oembed/1.0/embed?url=..." />
<link rel="alternate" type="text/xml+oembed" href="http://example.com/wp-json/oembed/1.0/embed?url=..." />
</head>

This custom function should help removing all links in the header and footer:
Read More

woocommerce-custom-product-search

Woocommerce custom product search box

By | Tutorial, woocommerce | No Comments

The product search box widget loads the search box using the template function:
get_product_search_form() It then looks for the product search form in the file ‘product-searchform.php’ or uses its default markup. You can override the default WooCommerce template product-searchform.php by customizing the markup.

For reference, the default markup is:
Read More

Your PHP installation appears to be missing the MySQL extension which is required by WordPress

By | Tutorial | No Comments

Trying to install wordpress in debian server server. Where MySql already exist which is running fine in local server but when I am opening my wordpress blog showing this error:

Your PHP installation appears to be missing the MySQL extension which is required by WordPress

 

How do I fix problem ?

The most common reason for this in windows is that your php.ini doesn’t have the mysql line uncommented, so it’s not loading the mysql module (or the module is simply missing entirely):

[[code]]czoxNTI6XCI8c3BhbiBjbGFzcz1cInBsblwiPg0KZXh0ZW5zaW9uPC9zcGFuPjxzcGFuIGNsYXNzPVwicHVuXCI+PTwvc3Bhbj48c3BhbiBje1smKiZdfWxhc3M9XCJwbG5cIj5waHBfbXlzcWw8L3NwYW4+PHNwYW4gY2xhc3M9XCJwdW5cIj4uPC9zcGFuPjxzcGFuIGNsYXNzPVwicGxuXCI+ZGxsDQp7WyYqJl19PC9zcGFuPlwiO3tbJiomXX0=[[/code]]

Restart your webserver after you fix the php.ini file.

Great Career Pathways Mixing Science and Craft

By | Wordpress optimize | No Comments

Software: Impressive English writing software that posesses patent that is global is only one-click away. Find out a distinction that is substantial within your work and to improve your writing skills, utilize the comprehensive WhiteSmoke solution. For that very first time actually, you could enhance your texts. This progressive resource confirms appropriate English syntax use immediately checks punctuation, and evaluates your total report to offer circumstance -based guidelines that improve your language adjectives, and adverbs. Read More

What Is Absolutely The Very Best Day-To Carry On A Job Interview

By | Wordpress optimize | No Comments

Have you been wanting HOWTO purchase a Rife Machine? Does anyone even create a Rife machine that is like Rife utilized in his research? Ad Ways 1 Remember that no body nowadays makes a Frequency machine-like the appliance of Royal Rife. Their unit would flash for milliseconds and destroy whatever sample he’d in the discipline. His unit may be recognized kilometers away. Read More

Facts About Airconditioning

By | Wordpress optimize | No Comments

Everyone feels it is thus relaxing to pencil a set. With numerous load function books these living, it is astonishing you’ll find purchase publications are consoled by sufficiency persons. In the knowledge of today’s, should you human any existence that is horrible get, suddenly writers requisite one to prepare a volume about it. If it offers, then your view was engrossing sufficiency to dissertations-writing-service.com blend powerfulness from a daring likelihood; and if not, no body really cared. Read More

Interesting Demonstration Topics

By | Wordpress optimize | No Comments

From basic issues to in-depth questions this informative article delivers clarification of the best meeting responses for nurses, that will help you score the job! Study answers and these important interview concerns medical individuals need to find out. Planning To Your Medical Interview Work interview for nurses is among the most effective and significant the main process that is hiring. Read More

Academic Appeal Letter Sample

By | Wordpress optimize | No Comments

Today is the dislike, as well as s memorial – picket the support inside their distinct fashion that is undignified and spewing has guaranteed showing up. As people are arriving at St. Anthony of Padua Church in Wilmington, De the class is ready to making use of their vitriolic indicators for at the least one hour. Picture by Chip Somodevilla/Getty Images Produces: "An Iowa cathedral, recognized to homosexuality of troops’ memorials for the strident resistance, has stated to protest Love Biden on Saturday’s burial." Biden, who perished March 30 after brain cancer that was fighting, also was an attorney for the P Guard and served in Iraq in 2009 and 2008. Read More

wordpress-tags-cloud-widget-limit

How to show limit number of Tags Displayed by WordPress tags cloud

By | Widget | No Comments

The Tag Cloud widget is a useful widget which displays a cloud of your most used tags on the sidebar or other areas that support widgets on websites powered by WordPress. But when the number of tags used grows, the list output by Tag Cloud widget may simply become too long or too short to your liking.

The default Tag Cloud widget does not support limiting or increasing the tags count.

Unfortunately, Tag Cloud widget does not provide any way to customize or set the number of tags to show in the output. To control the number of tags displayed by Tag Cloud widget, insert the following code snippet in your active theme’sfunctions.php custom functions file.

[[code]]czozMDY6XCINCmFkZF9maWx0ZXIoIFwnd2lkZ2V0X3RhZ19jbG91ZF9hcmdzXCcsIFwndGpfdGFnX2Nsb3VkX2xpbWl0XCcgKTsNCmZ1bmN0e1smKiZdfWlvbiB0al90YWdfY2xvdWRfbGltaXQoJGFyZ3MpeyANCgkvLyBDaGVjayBpZiB0YXhvbm9teSBvcHRpb24gb2YgdGhlIHdpZGdldCB7WyYqJl19aXMgc2V0IHRvIHRhZ3MNCglpZiAoIGlzc2V0KCRhcmdzW1wndGF4b25vbXlcJ10pICYmICRhcmdzW1wndGF4b25vbXlcJ10gPT0gXCdwb3N0e1smKiZdfV90YWdcJyApew0KCQkkYXJnc1tcJ251bWJlclwnXSA9IDIwOyAvLyBOdW1iZXIgb2YgdGFncyB0byBzaG93DQogCX0NCglyZXR1cm4gJGF7WyYqJl19cmdzOw0KfQ0KXCI7e1smKiZdfQ==[[/code]]
 

Replace the number of tags to display with your own desired count. Example above shows 25 tags. By default, WordPress limits the terms shown to 45 most used tags. You can increase (add) or decrease (reduce) the number of tags shown as you like.

On the other hand, if you use custom taxonomies and want to display those instead, replace the post_tag (the default WordPress taxonomy for tags) in the above code with the custom taxonomy term.