Limit the number of keywords in WordPress tag cloud to control PageRank

Did you know that the default wordpress tags, labels or keywords from the sidebar can have a huge impact on your website? Well it does.

Beginning with Version 2.8, the default tag limit in wordpress is set to 45, witch is quite large and can definitely affect PageRank on small blogs with less PageRank to spread around. However the net affect can still be helpful on high authority blogs. Continue reading “Limit the number of keywords in WordPress tag cloud to control PageRank”

How to embed video into a website – Ultimate tutorial

Embedding a video into HTML website seems an easy task, but there really are lots of aspects to take into consideration when you insert a video:

  • File size and format (extensions and codecs)
  • Browser and platform compatibility
  • User internet connection (mobile vs desktop devices)
  • Server resources (bandwidth, CPU, RAM)
  • Privacy and data owning
  • Content visibility and engagement

Therefore, depending on where you will insert the video and the application you use, you will be affected by some of the above or not. So let’s get our hands on it and do a step by step research about what is the simplest way to embed a video. Continue reading “How to embed video into a website – Ultimate tutorial”

How to deactivate all WordPress plugins from MySQL database

WordPress plugins can be easily disabled from the database. You just have to open your favorite client and connect to your favorite client and go to your site database. I normally use HeidSQL, phpMyAdmin or Adminer but you can use any other. For this specific task you must know your database connection credentials. If you have an FTP connection you can find that in your wp-config.php file on the wordpress installation root

You will have to go to the wp_options  table and search for a specific value in the option_name  column. Please note that the table prefix (wp ) is the standard prefix but can be different from one installation to another. Continue reading “How to deactivate all WordPress plugins from MySQL database”

WordPress is asking for FTP credentials to update plugins, FINALLY RESOLVED

I was dealing with this problem for a while and did not know how to give WordPress permission to write to his folders when updating plugins or themes.

On the other hand this was forcing me to chmod wp-content/uploads  folder with 777 permissions. I am not a heavy image uploader, so when I was in need of updating I was just chmod to 777 and then, after uploading my stuff, get back to 755.

I am not a Linux lover, geek, guru (or how they call it) so I had no clue about why this happened on my VPS or how to fix that. But as a respectable “self-directed learner” as I am, I had to dig into the situation. Continue reading “WordPress is asking for FTP credentials to update plugins, FINALLY RESOLVED”

Enable/Disable WordPress Automatic Core, Plugins and Themes Updates

Back in 2013, the WordPress 3.7 introduces the automatic update feature. There are 4 types of updates and that includes, the WP core, plugins, themes and languages.

Although updates are a good thing to do, from a security point of view, there are some aspects that you will want to take into consideration when doing an update.

So you may want to choose the time of the update, you may want to choose what to update and most of all you would like to take a full backup, just in case things don’t go out well, specially when updating themes.

So if you want to have it all controlled and take decisions after you first test everything, you can completely disable all automatic updates by adding this line to your wp-config.php . Continue reading “Enable/Disable WordPress Automatic Core, Plugins and Themes Updates”

Change default 1M max upload filesize limit for WordPress Mutisite

If you are like me playing around with the WordPress Multisite feature and you’ve run into the max allowed upload filesize limit of 1M, you are in the right place to fix it.

There is a not quite intuitive (for me) option in the Super admin dashboard that allows you to change this. Please note that this does not overwrite your apache or php.ini settings if this last one is smaller. Here you can apply the rule of the most restrictive.

So here are the steps to achieve this:

Here are the steps to change the Maximum upload file size within WP admin: Continue reading “Change default 1M max upload filesize limit for WordPress Mutisite”

Migrating multisite WP, don’t forget to edit wp-config.php

I have previously write about migrating WP using the database search/replace php tool. But migrating a MultiSite intalation is a little bit different.

This is the first time I am playing with WordPress and the multisite feature, so I am learning from my mistakes. There is a small change that I missed the first time I have read the documentation in WP Codex about Moving WordPress:

If database name or user changes, edit wp-config.php to have the correct values.

Continue reading “Migrating multisite WP, don’t forget to edit wp-config.php”

WordPress rename/change Post name to a different post type

There are times when you wold like to rename the default posts to something else. For example, I used a WordPress installation to created a real estate related website from a standard WordPress install.

I needed to add a custom post houses so that the client would be able to add the content to the website, but on the other hand I did not need to use the standard post type since I did not need the blog or news section. So why not convert it to something else. Continue reading “WordPress rename/change Post name to a different post type”

The easy way to migrate WordPress using search and replace database

So you want to migrate a WordPress database and you came into the problem that when you load the new installation directory you are being redirected to the old domain. You probably tried to manually replace in your PhpMyAdmin in the wp_options  table the two entries that normally exist, but still no success. Maybe your website is loading but there are lots of errors in there.

This is because WordPress and lots of plugins store data and full URI in the database using wp_serialize function. Here is a little example about what I am talking about:

a:6:s:4:"role";s:5:"admin";s:17:"includes_globally";s:2:"on";s:18:"pages_for_includes";s:0:"";s:12:"js_to_footer";s:2:"on";s:15:"show_dev_export";s:3:"off";s:11:"enable_logs";s:3:"off";}

If you just do a search and replace you will break all this fields and data can not be recovered.

Continue reading “The easy way to migrate WordPress using search and replace database”