WordPress

7 WordPress Hacks that No One Will Tell You

wordpress blog tips and tricks
Written by John Noels

‘WordPress powers 34.5% of the total websites on the internet today’ as per the recent research conducted by W3Techs. The reason behind it is pretty obvious – it is user-friendly. Generally, creating a website needs a lot of elements like coding, domain, hosting, plugins, etc. WordPress fulfills all of these requirements in one place. The best part is, anyone can develop the website or blog here because this platform allows you to build the website even without coding. You just need to select themes, plugins, etc. and BOOM!!! Your website is developed. System and internet are all you need to make a website on WordPress. That’s why it is very popular nowadays.

As its popularity is increasing, the demand for hacks is also increasing. This is because everyone wants to know the shortcuts, quick-fix, etc. related to WordPress. If you’re also the one who wants to know the hacks, then you’re at the right stop! Here is the list of 7 essential tricks for WordPress.

7 Exclusive Hacks for WordPress

WordPress hacks are those tricks, shortcuts, skills or methods which provide ease to the users by simplifying the tasks. Let’s look at the exclusive WordPress hacks one by one.

Hack #1: Delete Spam Comments in WordPress

Spam comments are those comments which are irrelevant to the WordPress blog. It consists of an advertisement, link to other websites, etc. Usually, the spam filter of the WordPress auto-delete these comments but there are a lot them which escape from it and join the ‘awaiting moderation’ list. Deleting them one by one consumes lots of time.

But don’t worry, because below is a step-by-step procedure which will help you in deleting all of them in just a few seconds. Yes, you read that right!

Step 1 – Login to PHPMyAdmin.

Step 2 – Select your website’s database.

Step 3 – Click on SQL from the drop-down list.

Step 4 – In the SQL command window, paste the below code.

DELETE from WP_comments WHERE comment_approved = ‘0’;

Step 5 – Save and re-upload the file.

That’s all!

This way, you can delete tons of spam comments in just a few seconds. Use this hack and remove the bulk of spam comments now!

READ  6 Best Drag & Drop Page Builders for WordPress

Hack #2: Increase the Memory Limit

Are you getting the pop-up ‘memory exhausted’ when you are uploading something on your WordPress website? Are you unable to activate a plugin as the memory is full?

Well, don’t worry. There’s a simple hack which will quick-fix this issue in just a couple of minutes. Just apply the following steps.

Step 1 – Login to the admin account of WordPress.

Step 2 – Open wp-config.php file.

Step 3 – Copy-paste the below code in it.

Code – define(‘WP_MEMORY_LIMIT’, ’52M’);

Step 4 – Save and re-upload the file.

This way, your website’s memory will be increased by 52M.

However, you can increase it as per the requirement by changing the number in the above line.

Note – Your hosting server will allow you to increase the memory of your website to a certain limit. You cannot increase the memory to an unlimited extent.

So, this way you can expand the memory limit of your website. Isn’t this a super easy and amazing hack? Then simply start using it right now.

Hack #3: Highlight Author’s Comment

Do you know that people find it hard to track the author’s comment from the cluster of comments in the WordPress blog? Well, why don’t you provide them a solution? It’s simple, just highlight your comment with another color! You can do it by following the below steps.

Step 1 – Login to the admin panel of WordPress.

Step 2 – Open the .commentlist element.

Step 3 – Find the .bypostauthor class in it.

Step 4 – Change the background in the .bypostauthor class.

Example – .commentlist .bypostauthor {background: #e7f8fb;}
.commentlist li ul.children li.bypostauthor {background: #e7f8fb;}

The bold alphanumeric part in front of the background is the color-code. Customize as per the color of the website and always remember to keep both the colors different so that the reader can differentiate your comment from other peer’s comment easily.

This is how you can highlight your comment and make it stand out from the cluster of comments. Login to your WordPress blog now and add this feature to help your readers.

Hack #4: Stay Logged in for Longer Period

When you click the ‘remember me’ option on the admin page of the WordPress, it keeps you logged in for 2 weeks, right? Ain’t you tired of logging in again after every 2 weeks? Of course, yes! Well, here is a hack which will help you log in till the time you select.

READ  Tips to Secure your WordPress Website from Hackers

Step 1 – Log in to the FTP account of your website.

Step 2 – Open the functions.php file.

Step 3 – Copy-paste the below code in the opened file.

(Code – add_filter( ‘auth_cookie_expiration’, ‘stay_logged_in_for_1_year’ );
function stay_logged_in_for_1_year( $expire ) {
return 31556926; // 1 year in seconds
})

Step 4 – Save and re-upload the file.

This way you’ll be able to stay logged in till one year. However, if you want to customize the time, edit the seconds in the code. It’s that simple. Try this trick now.

Hack #5: Customize Your Website without Coding

Above methods include some coding technique. Do you have no idea about codes and still want to customize your website? Well, the method is very simple. Customize it by selecting the desired options from the drop-down list of the admin page.

Found this method time-consuming? Well, there’s a shortcut named ‘Short-codes’ and fortunately, it does not need any coding.

Short-codes are like the tags which you can simply add in the content or blogpost of WordPress. This will help you in inserting the elements in a much convenient way. Below is the list of some WordPress short-codes.

  • [Audio]
  • [Caption]
  • [Embed]
  • [Gallery]
  • [Playlist]
  • [Video]

Now, let’s look at an example to use them.

Example – [Gallary ids=”729, 732, 731, 720″]

Here, ids are the id of the images which you want to insert in WordPress.

Not just images, videos, caption, etc., you can add widgets, plugins and many other things with the help of the short-codes.

Make use of the short-codes and do the customization in your WordPress website in a more convenient way.

Hack #6: Edit Anything on WordPress Temporarily or Permanently

Do you want to edit and check how bright blue color looks on your website’s banner? Do you want to edit the tag-line of your blog in just a few seconds and want to do a lot more tasks like this? Well, the method to accomplish this goal is very easy. Below are the steps to do it.

Step 1 – Login as an admin to your website.

Step 2 – Click on that part of the website which you want to edit.

READ  7 Must have WordPress Web Design Plugins For Beginners

Step 3 – Click on the inspect button.
(It will direct you to that part of the code which belongs to that particularly)

Step 4 – Edit the change which you want to see.

Example – If your tag-line is ‘It is well’ and you want to edit it to ‘See the good,’ then just edit this quote in the code.

This way it will be changed temporarily.

Step 5 – If you want to make the change permanent, then simply save the code.

Isn’t it easy? It is, indeed. Try this trick now and edit your WordPress website temporarily or permanently.

Hack #7: Log in to the Admin’s Page Directly

Are you tired of first opening the website, then clicking on the sign-in button, filling the details, and then logging in? Well, then this last hack is for you.

This hack is a bit common which everyone knows, and that’s why it’s not found in any of the hack’s lists. But you can’t deny the fact that it’s the most helpful hack for a WordPress beginner who doesn’t know much about it.

The trick is very simple. Here’s what you need to do.

Step – 1 Type your website’s address in the search box of the Web browser.

Step – 2 Copy-paste /wp-admin in continuation.

Step – 3 Open the URL.

That’s all!

This way you can straight away log-in to the admin page of your WordPress website. Isn’t it easy? It surely is!

These 7 WordPress hacks are those tricks, which no one will tell you. From removing spam comments to the logging into the admin page, it has covered everything. So, now do the complex tasks easily and save your time by using these WordPress hacks.

The following two tabs change content below.

John Noels

John Noels is an academic writer. He loves to provide assignment writing help to the students. You can find him reading a novel, watching a fiction action series or playing guitar at a local open mic event in his free time.

Latest posts by John Noels (see all)