I just found a client facing this problem, that his website is attacked by a some kind of virus or malicious script. His website is replaced and redirects to another malicious web pages, some random and malicious blog posts generated on his posts list containing...
Category: WordPress
How to remove all thumbnails from wordpress posts
In case you want to remove all the existing post thumbnails / feature images of a website, you can go to phpmyadmin and find your database, look up for wp_yoursite_postmeta table, and run this query: Remember, “yoursite” is your website’s prefix that you setup on...
How to save and retrieve data in WordPress using get_options and update_options
In WordPress development, we often need to save and retrieve simple data in our database. By using get_options and update_options in WordPress this thing become super easy. Let’s say we want to save and retrieve a data called “User’s age”. First of all, we need...
How to make custom page for your plugin inside WordPress admin dashboard
Depending on what kind of plugin you are making, sometimes you want to make a settings page for your plugin so users can play around with the settings to control the way your plugin works. So how to make custom settings page for your plugin...
How to ride WordPress and use it’s database configurations to create our own tables and columns
When making a WordPress plugin sometimes we need to do some database operations, such as making table, adding column, inserting new data, updating data and so on. We can use current WordPress database connection that has been established before so we can just ride it....
How to make your custom input fields for your WordPress posts
By default there are some basic input fields and options for your wordpress posts when you want to publish a post, such as title and the post text itself, categories and the rest. These basic fields is only useful for making simple blog by adding...
How to sort recent WordPress posts using custom order based on anything
I was trying to figure out how to make custom order of posts lists in our WordPress website. It’s confusing at first, because what I need to do is to sort my posts ordered by custom meta box field of my posts. In other words,...
How to develop a WordPress plugin : Very Simple Way
Basically making a WordPress plugin is very easy. If you know the basic, you can make it super complicated, depending on what you want to achieve. First Step: Make the directory and plugin file To make a plugin, simply create a directory inside wp-content->plugins folder...
How to retrieve current database name, user and password of a WordPress site
When you are working on WordPress development (theme deelopment or plugin development), probably you will need to retrieve current website database name, database user and password. To get those information you can write these lines on your theme/plugin: The last three lines will echo the...
How to change WordPress footer text with JavaScript
There is a common way to edit footer text of a WordPress site theme, it’s by modifying footer.php file. But if you got a new update of your theme, you will lose that, the footer reverted back to the original footer file. But if you...