How to get WordPress image link from the media ID
In this example, I’m using ID 14988 Using Media Library If you are logged in as admin, add the media ID in the website URL: then copy the file URL: Using SQL Using WPCLI or
In this example, I’m using ID 14988 Using Media Library If you are logged in as admin, add the media ID in the website URL: then copy the file URL: Using SQL Using WPCLI or
As you may have guessed from this site, I ❤️ LISTS. I pretty much have a list for anything WordPress-related: Here is another list that was once a draft page on this blog that I used to bookmark links to interesting blogs written by other WordPress enthusiasts and developers. The list is simply updated as … Read full article →
Here are the most common types of WordPress malware attacks. Permanent malware eradication entails conducting a thorough investigation and determining the type of attack that occurred, how it occurred, and permanently closing that door. This is known as root cause analysis and vulnerability fix in the security world. 🔀 Cross-site scripting (XSS) The most regularly … Read full article →
The following code snippet will automatically generate Alt Text for all featured images from the Post Title. If you are looking for more settings, check the SEO Friendly Images plugin.
I wrote this simple guide knowing that hosting your WordPress site is an important decision and choosing the wrong hosting company can harm your site in many different ways. In what ways? Well, website speed is a crucial element these days when it comes to how Google sees your website. WordPress site is slow to … Read full article →
When installing new plugins the error is displayed: Installation failed: Could not create directory. How to fix the Installation failed: Could not create directory. error OPTION 1: Change File permissions This error usually occurs because WordPress doesn’t have writing permissions for the folder. To make sure this is the case, navigate to Tools > Site … Read full article →
Here are some examples of security configurations that can be added to your WordPress website’s wp-config.php file: Disable file editing define( ‘DISALLOW_FILE_EDIT’, true ); This configuration will disable the built-in WordPress file editor, which can prevent users from accidentally or intentionally making changes to the core WordPress files. Change the default database table prefix $table_prefix … Read full article →
Here is a convenient WP-CLI command that I use when cleaning hacked WordPress websites in order to reinstall all plugins from WordPress.org It consists of two commands: get a list of all active plugins, then force reinstall for each plugin. To reinstall all WordPress themes in the same manner use:
AJAX enables tasks such as fetching, inserting and deleting records from a MySQL database, as well as file uploading. AJAX sent URL should be admin-ajax.php. wp_ajax action hooks. Here are well-explained tutorials from Yogesh Singh on how to send AJAX requests from a WordPress theme and a WordPress plugin:
Here is a simple WordPress plugin that will automatically add the post title as the alt tag to featured images and other images in the post content improving traffic from search engines. Simply install & activate the and it will automatically add Alt Tag to images in new posts. <?php /** * Plugin Name: Auto Alt … Read full article →