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
💡 The wp-content folder is where themes, plugins and other uploads are stored.
Here you can find up-to-date guides for the most popular WordPress plugins and discover new themes.
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
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.
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 →
Text alone is not enough to fully catch the attention and deliver value for your website’s visitors. People want to get the information fast and clear. Videos are good ways for catching the attention and get people stay longer at your website. So, let’s find out what are the best WordPress video plugins that allow … Read full article →
Here is a snippet that allows you to set a custom image on the WordPress login page and set a custom link: Replace https://your-domain.com/wp-content/uploads/2023/custom-logo.png with your logo https://your-domain.com with your link
Here is a simple code snippet that you can add to your theme functions.php file to show the “last updated” date in your posts. A new line will be added to the beginning of the post content if the last modified and published time is different:
wp_delete_post function allows us to permanently delete posts, pages, attachments. When a post is deleted, all the associated content will also be deleted, this includes the comments, custom fields, and category entries. Instructions Parameter PARAMETER TYPE DESCRIPTION DEFAULT REQUIRED $postid intiger article ID 0 no $force_delete boolean skip recycle bin and delete permanently false no … Read full article →
Like many other scripts, WordPress also uses PHPmailer to send transactional emails. If no email is set for sending emails, WordPress will use the default cPanel email account ([email protected]) which isn’t pretty. SMTP (Simple Mail Transfer Protocol) is an industry-standard for sending emails. Proper SMTP configuration helps increase email deliverability by using authentication. To specify … Read full article →
Before you choose any WordPress directory theme, can you tell what makes a perfect directory site? If you don’t know the right answer, we’d suggest you should continue reading instead of jumping straight to our list of Best WordPress Directory Themes. Even if you know the basics, these lines can refresh your memory, or probably … Read full article →