Category Archives: Free Press

Performing Bulk Edits In WordPress Database With Better Search Replace Option

In the previous lesson, you learned about editing MySQL databases using the search-replace option on the cPanel. For the more complex tasks, WordPress users may use the ‘Better Search Replace‘ plugin to effortlessly update their website’s database from their admin area dashboard.

Using the Better Search Replace WordPress plugin is straightforward and can save you a lot of time when you need to perform bulk updates across your database. Here’s a step-by-step guide on how to use it:

Step 1: Install and Activate the Plugin

  1. Log in to Your WordPress Admin Dashboard
  2. Install and activate the ‘Better Search Replace’ plugin from Plugins -> Add New page.
  3. Go to the Plugin Settings: In your WordPress dashboard, navigate to Tools > Better Search Replace to open the plugin’s settings page.

Step 2: Configure Your Search and Replace Operation

  1. Enter the Search Term: In the Search for field, type the text or URL you want to search for in your database.
  2. Enter the Replace Term: In the Replace with field, type the text or URL you want to replace the original text with.
  3. Select the Tables to Update: Under the Select Tables section, choose the database tables where you want to perform the search and replace operation. You can select multiple tables or use the Select All option.
    • Common Tables:
      • wp_posts for post content and pages.
      • wp_options for site settings.
      • wp_postmeta for custom fields.

Step 3: Run a Dry Run (Optional but Recommended)

  1. Enable the Dry Run Option: Check the Run as dry run? option. This will simulate the search and replace operation without making actual changes, allowing you to see how many fields will be affected.
  2. Run the Dry Run: Click the Run Search/Replace button. Review the results to ensure that the operation will do what you intend.

Step 4: Execute the Search and Replace

  1. Disable the Dry Run Option: Uncheck the Run as dry run option.
  2. Run the Search/Replace: Click the Run Search/Replace button to execute the operation. The plugin will now make changes to your database based on your configuration.
  3. Check the Affected Content: After the plugin has run, review your site to ensure the changes have been applied correctly.
  4. Clear Caches (If Applicable): If you’re using a caching plugin, clear your site’s cache to ensure that the changes are reflected on the front end.

Step 5: Repeat if Necessary

If you need to run another search and replace operation on different tables or with different search/replace terms, repeat the steps above.

Additional Tips:

  • Backup Your Database: It’s always good practice to back up your database before making bulk changes. So that if you encounter any issues, you can restore your database from the backup you created earlier.
  • Serialized Data: The plugin automatically handles serialized data, which is essential for many WordPress plugins and themes. This means you don’t have to worry about breaking serialized arrays during the search and replace process.
  • Multisite Support: If you’re running a WordPress Multisite network, you can perform search and replace operations on individual sites or across the entire network.

Following these steps, you can efficiently update URLs, text, or any other content across your WordPress site.

Automating WordPress Database Updates For Seamless Website Migration

When migrating your WordPress site to a new domain or server, it’s often necessary to perform a search and replace operation on your database to ensure everything functions correctly. Thankfully, several plugins can handle this task, each offering a unique approach to key features.

The “Better Search Replace” plugin for WordPress is a powerful tool designed to help site administrators quickly and efficiently search and replace text across their entire WordPress database. It’s particularly useful for tasks like changing URLs when migrating a site to a new domain, updating text or links throughout a site, or fixing common database issues.

What You Can Do With This Plugin?

  1. Search and Replace Across the Database: The plugin allows you to search for a specific string of text and replace it with another across your entire database. This includes posts, pages, custom post types, widgets, options, and more.
  2. Dry Run Mode: Before making any actual changes, you can perform a “dry run” to see how many fields will be affected by your search and replace operation. This helps ensure you don’t accidentally replace something you didn’t intend to.
  3. Serialized Data Handling: One of the standout features of Better Search Replace is its ability to handle serialized data. Serialized data is a way of storing arrays or objects in the database. If a plugin or theme uses serialized data, a simple search and replace operation could corrupt it. Better Search Replace intelligently handles these cases to prevent issues.
  4. Multisite Support: The plugin also supports WordPress Multisite installations, allowing you to perform search and replace operations across all sites within a network.
  5. Select Specific Tables: You can choose which database tables to include in the search and replace operation, giving you more control over what gets changed.
  6. User-Friendly Interface: The plugin features an intuitive interface that integrates seamlessly with the WordPress dashboard, making it easy for even non-technical users to perform complex database operations.
  7. Logging and Reporting: It provides detailed reports of the search and replace operations, including what was changed and what wasn’t, allowing you to review the results and make informed decisions.

How To Use Better Search Replace?

Simply install and activate the Better Search Replace plugin from Plugins -> Add New page. Once the plugin is activated, it adds a page under the “Tools” menu on your WordPress admin area dashboard.

When Use This Plugin?

  1. Domain Changes: When migrating a WordPress site to a new domain, all instances of the old domain in the database need to be updated to the new domain. Better Search Replace makes this process straightforward.
  2. HTTPS Migration: If you’re moving your site from HTTP to HTTPS, you can use the plugin to update all the links in your content to the secure version.
  3. Updating Text or Links: If you need to update a particular phrase, term, or URL across your entire site, this plugin can handle it quickly.

How Better Search Replace Works On Multisite?

When using this plugin on a WordPress Multisite installation, it will only be accessible and visible to Network Admins. They can navigate to the dashboard of any subsite to run a search and replace on that subsite’s specific tables, or they can go to the main site’s dashboard to perform a search and replace across all tables.

Some Considerations

  1. Backup Your Website: Since this plugin modifies the database, it’s always recommended to take a full backup before performing any search and replace operation. This way, you can restore your site if something goes wrong.
  2. Performance Impact: On extensive databases, searching and replacing can be resource-intensive and may temporarily slow down your site. It’s best to perform such operations during low-traffic periods.

The plugin is highly regarded in the WordPress community for its reliability and ease of use, making it a go-to tool for many WordPress developers and administrators.

How To Personalize WordPress Ecommerce For A Truly Unique Experience?

WordPress Ecommerce is a versatile eCommerce platform packed as managed hosting, WordPress & WooCommerce, empowering businesses to create and manage online stores with ease. It is one of the most popular eCommerce solutions globally in use due to its user-friendly interface, flexibility, and extensive customization options.

Whether you’re selling physical products, digital downloads, subscriptions, or services, it provides robust features such as product management, inventory tracking, secure payments integration (including major gateways like PayPal and Stripe), and shipping options tailored to various needs. Its scalability makes it suitable for businesses of all sizes, from small startups to large enterprises, offering a rich ecosystem of themes, plugins, and extensions to enhance functionality.

With built-in analytics and reporting tools, it enables store owners to monitor sales, customer behavior, and optimize their online presence efficiently. Supported by a vibrant community and continuous updates, it remains a leading choice for anyone looking to establish a professional and profitable online presence.

Personalizing WordPress Ecommerce can greatly enhance the user experience and set your store apart. Here’s a comprehensive guide on how to achieve a truly unique experience for your WooCommerce site:

Customize Product Pages:

  • Product Descriptions: Write compelling and informative descriptions that highlight unique features and benefits.
  • Images and Videos: Use high-quality images and videos to showcase products from different angles and in use.
  • Customer Reviews and Testimonials: Display customer reviews prominently to build trust and credibility.

Offer Product Customization Options:

  • Customizable Options: Use WooCommerce product variations or plugins like “WooCommerce Product Add-ons” to allow customers to choose colors, sizes, engraving, etc.
  • Personalized Messages: Offer options for customers to add personalized messages or names to products.

Implement a User-Friendly Design:

  • Custom Themes: Choose a WooCommerce-compatible theme that reflects your brand and enhances usability.
  • Mobile Optimization: Ensure your site is responsive and functions well on mobile devices.

Optimize Checkout Experience:

  • Streamlined Checkout Process: Simplify the checkout process with fewer steps and clear calls-to-action.
  • Guest Checkout Option: Offer guest checkout to reduce friction for first-time buyers.

Leverage Plugins and Extensions:

  • Personalization Plugins: Use plugins like “Personalized Products for WooCommerce” or “Product Personalizer” to enable customers to customize products in real-time.
  • Recommended Products: Implement recommendation engines to suggest products based on customers’ browsing and purchasing behavior.

Create a Loyalty Program:

  • Reward Points: Implement a points-based system where customers earn points for purchases, referrals, or social shares.
  • Exclusive Offers: Offer exclusive discounts or early access to new products for loyal customers.

Provide Excellent Customer Support:

  • Live Chat: Offer real-time support through live chat to assist customers with product queries or customization options.
  • FAQs and Knowledge Base: Create a comprehensive FAQ section or knowledge base to address common questions and concerns.

Personalize Marketing Efforts:

  • Email Marketing: Segment your email list based on purchase history or preferences and send personalized product recommendations.
  • Retargeting Campaigns: Use retargeting ads to remind customers of products they showed interest in but didn’t purchase.

Monitor & Analyze Performance:

  • Analytics: Use tools like Google Analytics or WooCommerce’s built-in analytics to track customer behavior, sales trends, and effectiveness of personalization efforts.
  • A/B Testing: Experiment with different personalized features and designs to optimize conversions.

Seek Feedback & Iterate:

  • Surveys and Feedback: Regularly seek feedback from customers to understand their preferences and pain points.
  • Continuous Improvement: Based on feedback and data analysis, continuously refine and improve your personalized user experience.

By implementing these strategies, you can create a WooCommerce Website that meets and exceeds customer expectations, providing a truly unique and personalized shopping experience.

Automatically Cleanup Attached Media Files When WordPress Post Is Deleted

WordPress allows you to upload and display a variety of media file types like images, music, and videos. But when you delete the post, all of the files attached to that specific post are left orphaned in your media library causing an undeserved load on your website. Since these files are of no more use, you may use a plugin for automatically deleting such images.

Earlier, you have learned about deleting unattached images from your WordPress media library. Now in this lesson, you will learn about automatically deleting attached files when their post, page, or post type is removed.

How To Automatically Delete Image Attachments When Any Post Is Deleted In WordPress?

Autoremove Attachments plugin keeps your media library clean by removing all media files attached as attachments to a post, page, or custom post type when the parent post is deleted. Hence, you don’t have to manually track down and remove orphaned files that remain on the server.

To start using the plugin simply log in to your WordPress site and follow these steps:

  1. Navigate to Plugins -> Add New section
  2. Search and install the ‘Autoremove Attachments’ plugin

There are no configuration options to set. Upon activation, the plugin automatically starts working and it automatically removes child attachments when a parent post, page, or custom post type is deleted.

The Compatibility With Other Plugins

The ‘Autoremove Attachments’ plugin is compatible with WooCommerce i.e. WordPress Ecommerce plugin, Easy Digital Downloads plugin, and all plugins that work within the WordPress system.

Make Sure

That you are not using the same media files in multiple posts or you will end up missing images from other posts on your WordPress website. If you need to use the same images in addition to this plugin then you must re-upload such images for reusing them on other posts.

Another important thing you should know is files are deleted when the parent post, page, or custom post type is permanently deleted so a soft delete that moves the content to the trash does not trigger attachment deletion. Hence, in order to delete the attached media files, you will have to permanently delete the post from the trash bin.

How To Bulk Delete Anything In WordPress?

The lesson guides you on how you can bulk delete anything including revisions, attachments, users, meta fields, posts, pages, custom post types, taxonomies, private content, public content, content older or newer than a given date, content by user roles, drafts, pending, scheduled, etc on your WordPress Website.

Whether your WordPress website is flooded with spam user registrations or you have accidentally imported sample content from some theme or plugin. Whatsoever may be the reason, you can bulk delete anything in WordPress in a few easy clicks.

The “Bulk Delete” is free WordPress plugin that enables you to efficiently manage and delete various types of content (in bulk) from your WordPress website. It’s especially useful for website administrators, content managers, and site owners who need to remove a large number of posts, pages, users, comments, or other types of content from their websites quickly and easily.

The Main Features Of Bulk Delete WordPress Plugin

The plugin simplifies the process of cleaning up your WordPress site or managing content in large quantities.

  1. Versatile Content Deletion: The plugin gives you options to delete various types of content, including posts, pages, custom post types, media, comments, users, and more. This flexibility allows you to target specific types of content that you want to remove.
  2. Filtering and Selection: The plugin offers advanced filtering options, allowing you to narrow down the content you want to delete based on criteria such as post status, post type, categories, tags, custom fields, date range, and more.
  3. Scheduled Deletion: You can schedule content deletion to occur at a specific date and time. This is useful if you want to automate content removal on a regular basis, such as deleting old posts or expired listings.
  4. Safe Deletion Process: The plugin includes safety measures to prevent accidental deletions. It usually asks for confirmation before performing bulk deletions to ensure you don’t inadvertently remove valuable content.
  5. Preview Before Deletion: Some versions of the plugin allow you to preview the list of content that will be deleted based on your filters before you execute the deletion process.
  6. Logging and Reports: The plugin might log the deletion activities, providing you with a record of what was deleted, when, and by whom. This can be helpful for maintaining an audit trail of content removal.
  7. Custom Post Type Support: If you have custom post types on your WordPress site, the plugin often supports deleting these as well, giving you control over non-standard content types.
  8. User Role Permissions: The plugin might allow you to configure permissions based on user roles, ensuring that only authorized users can perform bulk deletions.
  9. Regular Updates: Depending on the developer, the plugin might receive regular updates to ensure compatibility with the latest WordPress versions and security patches.

At the same time, you should also know that there’s a plugin called ‘Database Reset‘ that allows you to clean up your website in one click, so if you are looking up for something to reset your whole website then ‘Database Reset’ plugin can be an alternative option for you. Else ‘Bulk Delete’ plugin is great for cleaning up a selective group of items.

How Does Bulk Delete Plugin Work?

Whenever you try to delete some tag, category, or any custom taxonomy in WordPress, only the term is deleted. Deleting taxonomy terms and posts in a taxonomy are two different things. By default, deleting in bulk takes a lot of time and sometimes on shared hostings it also causes PHP memory issues resulting in Internal Server and Resource Usage Errors on your website.

But when you use the ‘Bulk Delete’ plugin, the process of bulk deleting by filtering posts, pages, custom post types, users, etc under your conditions becomes easier.

The plugin enables you to delete the content on the basis of the following filters:

  • Delete posts by category, tag, custom taxonomy, custom post type, by URL, delete all draft posts, all pending posts, all private posts, all scheduled posts, all trashed content
  • All given options support these filters – Post date greater than X day, less than X days, delete only public posts or private posts, restrict deletion to first N posts, delete content permanently, or just move to trash
  • Deleting pages – all published pages, all draft pages, all pending pages, all private pages, all scheduled pages.
  • Deleting post revisions – You can delete all post revisions
  • Delete users based on user role or who have not logged in in the last X days
  • Deleting Meta Fields – Delete Post meta fields, Comment meta fields, User meta fields
  • Deleting other items such as Jetpack Contact Form Messages

These are the free plugin options. It also supports a number of premium add-on features, such as you can schedule the deletion automatically, bulk deleting posts with duplicate titles, and much more.

How To Use Bulk Delete Plugin In WordPress?

Login to your WordPress admin area dashboard and navigate to Plugins -> Add New page to find and install the Bulk Delete plugin. Upon activation, the plugin adds a new admin menu ‘Bulk Delete’ on your admin area dashboard.

The menu link takes you to a page from where you can delete any kind of content in bulk. So all you got to do is navigate to this page and delete whatever you don’t want on your website.

It is critical to exercise caution when using the “Bulk Delete” plugin, specifically if you’re dealing with content that cannot be easily recovered. So it becomes very important for you to make sure to have a backup of your website before performing any actions and ensure what you are going to do with this plugin.

How To Edit Author’s URL Base & Slug In WordPress?

The author’s URL in WordPress consists of your domain name followed by the author text as the base and the author’s name as a slug. Slug is any author’s username used after the base in the author’s URL. An author’s URL is linked to a page showing all posts made by that author.

For Example https://yourdoamin.com/author/username

In WordPress, the author URL base and slug control how the URLs for author archives are structured. As shown above, WordPress uses the “author” base and the author’s username as the slug. But, you can customize these settings to suit your needs. This lesson guides you on how you can edit the author URL base and slug in your WordPress website.

How To Edit Author’s Slug?

Install and activate the Edit Author Slug plugin. After activation, you would be able to edit the author’s base by following these steps:

  1. Go to Settings -> Edit Author Slug in your WordPress dashboard.
  2. Enter your desired author slug in the provided field.
  3. Save the changes.
How To Completely Edit Author URLs (Base & Slug) In WordPress? 2

The plugin also enables you to use different author bases for authors on the basis of their roles on your website.

For editing the author’s slug, the plugin enables a set of options on each user’s profile page:

  1. Navigate to Users -> All Users admin page 
  2. Click the ‘Edit’ link which takes you to the Edit User page.
  3. Scroll to the Edit Author Slug section
  4. Change the author’s slug
  5. Save your changes.
How To Completely Edit Author URLs (Base & Slug) In WordPress? 1

Updating the author URL i.e. base and slug affects your website’s SEO and existing links to some extent. So it is advised to set up proper redirects if you’re making significant changes to the URLs, you may use the ‘Redirection’ plugin for that.

What Makes Sangkrit.net Most Secured Hosting Option For You

Securing your WordPress or website on your hosting server is crucial to protect it from potential threats and vulnerabilities. This lesson explains you why you should go for Sangkrit.net Web Hosting and what makes it the most secured hosting option that gives you complete control over to enhance the security of your website.

Auto-limits The Login Attempts On Your Website

Implementing a plugin restricts the number of login attempts on your website to prevent brute-force attacks. All WordPress sites on each and every hosting option at Sangkrit.net automatically give you a site with a pre-installed plugin to limit login attempts.

Enables The Two-Factor Authentication (2FA)

This is also asked as a default option when you make your website at Sangkrit.net. The two-factor authentication requires an additional layer of authentication, such as using a mobile device, to access your WordPress admin panel.

Keeps WordPress, Core, Themes, & Plugins Updated

The second most important thing is to regularly update WordPress core, themes, and plugins to ensure you have the latest security patches and bug fixes. Hackers mostly target abandoned themes and plugin folders to plant phishing attack pages on any website. At Sangkrit.net you get the option to automatically update minor or major versions of WordPress core, themes, and plugins by automatically generating a backup beforehand.

Helps You To Keep Strong Passwords

Use strong and unique passwords for your WordPress admin, FTP, and hosting accounts. Avoid using default usernames like “admin” and “webmaster” because hacker bots generally target websites by using such types of usernames as they are very common and most of the time they are used automatically by the software installers in case you don’t update it while installing a CMS on your domain name. Sangkrit.net offers you an option to generate the most secure usernames and passwords before using WordPress.

Always Gives An SSL Certificate To Your Website

Enabling SSL (HTTPS) on your website encrypts the data transmission and enhances security. There are various SSL plans you may choose from and you should also know that every Sangkrit.net hosting user can alternatively use the free SSL service from the AutoSSL page on the cPanel of your hosting account.

A Secure Web Hosting Environ

Web Hosting is the place where all your website files are stored, apart from the admin panel of your website, the admin panel of your hosting should also be a secure zone as it is also the place that is targeted by hackers and brute-force.

Hence, you must choose the hosting that offers features like firewalls, malware scanning, and DDoS protection. Sangkrit.net offers you all such options and features.

Keeps Regular Backups Of Your Website

Performing regular backups of your website ensures you can restore it in case of a security breach.

Automating backup is another useful option on Sangkrit.net hosting plans, it gives you an option to daily, weekly, or monthly generate backups of your website. If you are hosting multiple websites then you can use the feature over multiple websites. Once you enable the option, your hosting will start creating and storing the regular backups of your website.

Protects WP-Admin Directory

Gives you support and a feature to limit access to the wp-admin directory using password protection or IP whitelisting tool. Because adding another layer of password protection to the WordPress admin directory is a great way to improve WordPress security.

Gives Option To Disable File Editing

Disabling the ability to edit theme and plugin files from the WordPress dashboard to prevent unauthorized changes is a very useful security feature in WordPress that helps you protect your website from malicious attacks and prevent accidental changes to the code of your website. The feature is easy to set up and can be managed from the admin panel of your website.

At the same time, it is also recommended to delete any inactive themes and plugins, as they may contain vulnerabilities.

Gives Option To Disable XML-RPC

If not needed, disabling the XML-RPC prevents potential DDoS attacks and brute-force login attempts.

Keeps You Updated About The Best Security Plugins

The system keeps you updated about the best reputable security plugins that offer features like malware scanning, firewall protection, and vulnerability detection on your website. Some important plugins come preinstalled on your WordPress site when you make it at Sangkrit.net.

Lets You Monitor User Activity

There are security tools to monitor user activity and detect suspicious behavior so that you can know what is happening on your website, and what sorts of visitors are trying to access what types of pages. Are there any bots or hackers attempting to access the admin panel of your website, etc.

You can also monitor changes to critical files on your website using tools like file integrity monitoring. The system enables you to easily set proper file permissions to restrict unauthorized access to uploaded files.

Lets You Implement Database, Directory, & File Security Measures

During one click installation of WordPress and other web building applications. The system allows you to change the default database table prefix (wp_ or anything else) to something unique to make it harder for attackers to guess.

There are also lessons to show you options to secure your wp-config.php file. Protecting the wp-config.php file by moving it to a higher directory level and restricting access to it makes your website more secure as it goes far away from access of hackers and suspicious bots.

Apart from that preventing directory listing by adding “Options -Indexes” to your website’s .htaccess file acts as another security measure.

Lets You Implement Content Security Policy (CSP)

CSP stands for Content Security Policy (CSP) is a security feature that helps prevent cross-site scripting (XSS) attacks on websites. XSS attacks occur when an attacker injects malicious scripts into web pages viewed by other users. By doing so, the attacker can steal sensitive information, perform actions on behalf of the user, or distribute malware. You can also use CSP to prevent cross-site scripting (XSS) attacks by controlling the sources of allowed content on your site.

Hot Links Protection

Hotlinks, also known as “hotlinking” or “direct linking,” refer to the practice of embedding or using the URL of an image, video, or other media hosted on one website directly on another website, without the content creator’s permission or without hosting the media on the website where it is displayed. They sometimes use a lot of resources from the website, the hot links protection allows you to disable selective hot links on your website.

The Leech Protection

The Leech Protection interface allows you to detect unusual levels of activity in password-restricted directories. After you set the maximum number of logins within a two-hour period, the system redirects or suspends users who exceed it. This is useful if, for example, someone posts a user’s login credentials on a public site and people start attempting.

Apart from this, the system also allows you to conduct regular security checks to identify and fix potential vulnerabilities on your WordPress or any other website.

So these are security practices that you can easily administer on your Sangkrit.net hosting or server account. It enables you to significantly reduce the risk of security breaches and protect your website in a free, easy, and more powerful way.

How To Add The Language Translator In WordPress?

Google’s Language Translator, now known as GTranslate is a widely used multilingual translation solution for websites that enables its users to use the language translation functionality. It is commonly used with WordPress as well as WooCommerce and it offers a user-friendly way to make websites accessible in multiple languages, catering to a global audience.

You can easily insert the GTranslate tool anywhere on WordPress via shortcode or PHP template. Simply navigate to your admin. area dashboard Plugins -> Add New page to find and install the Translate WordPress – Google Language Translator plugin to embed the translator using an inline or vertical layout to enable your users to easily translate any content right on your website.

Once you activate the plugin visit the translator’s page on ‘Settings’ present on your admin area dashboard and select your configuration options.

Google Language Translator

The plugin works over a wide range of WordPress features such as posts, pages, widgets, categories, tags, as well as themes, and plugins. It also enables you to set the default language of your website. You can choose what language flags you want to display on your translator. This can be either done by displaying the translate box or setting the layout by enabling the translate toolbar that shows up on the top of your screen.

When you’re done with options, scroll down to either copy the PHP template and use it in your theme’s PHP files or use the shortcode for displaying the translator inside your posts, pages, post types, or widgets.

How To Assign Categories To WordPress Media Library Files?

Enabling categories over WordPress media files lets you easily group and find the images. Just like posts, you can enable the category taxonomy in your WordPress admin area dashboard’s ‘Media’ section.

To do so, simply navigate to your admin area Plugins -> Add New page to search and install the Media Library Categories plugin on your website. Upon activation, the plugin will add a categories section on Media -> Categories page.

From this page, you would be able to create and manage categories. The categories could be either assigned while uploading the image or from the Dashboard -> Media page. You can also browse images by their category and perform bulk editing actions from this page using the drop-down option.

Apart from enabling you to add, remove, edit categories, change the category of multiple photos at once, and browse images by their category. The plugin also lets you display photos from a selective category by using a shortcode.

How To Display Photo Galleries By Category?

For displaying photos from a category in a gallery format you simply need to add the ‘category‘ attribute to the shortcode and then use it on any post or page just like any other shortcode.

The value handed to the ‘category‘ attribute can be either the category slug such as:

[gallery category="my-category-slug"]

Or the term_id, such as:

[gallery category="14"]

When you only want to display attachments uploaded to the page and filtered by category then use the ‘id‘ in combination with the ‘category‘ attribute:

[gallery category="my-category-slug" id="123"]

Or leave the ID empty for the current page/post:

[gallery category="my-category-slug" id=""]

In the given example, the slug is used, but as you can see the term_id can also be used.

You should also know that the WordPress Media Library uses the same categories as WordPress does in posts. Still, if you want you can use separate categories as a custom taxonomy from Settings -> Media page or by clicking on the settings quick link on the plugins overview page.

Enable Your Users To Read More Without Refresh In WordPress

‘Read More’ or ‘Continue Reading’ tags are used for showing only a part of the content on home and multi-post pages on a WordPress Website. The tag is inserted by clicking the plus icon on the block editor and then searching ‘More’ and then clicking it to insert after the first or second paragraph that you like to show on the homepage.

By default, when this ‘Read More’ link or button is clicked, the user is directed to a single post page showing the complete blog post.

In this lesson, you will learn about a shortcode that will allow your users to read complete post content right there on the page without reloading the site to a new page. There is a plugin that lets you do that very easily on your WordPress site.

How To Display Read More Without Refresh Button?

  1. Simply navigate to Plugins -> Add New page on your admin area dashboard
  2. Search and install the Read More Without Refresh plugin
  3. Navigate to your admin area RMWR Settings page from the left side menu
  4. Select the read more button’s color, text, font size, border, padding, hover, font-weight, and other customization options and save your settings
  5. Now in your post edit screen, simply use [read more] Your long text [/read] tags to display the read more button
Read More Without Refresh 1

Once the user presses the “Read more” button, it expands the content. The users would be able to hide it again by pressing the same button that becomes ‘Read less’ when the content is expanded.

Read More Without Refresh 2

The plugin is SEO-friendly, it hides the predefined text of your choice with a shortcode, leaving the remaining content visible to search engines. The plugin works for posts, pages, and other custom post types and it can be an alternative to the traditional ‘Read More’ button.

How To Convert One Taxonomy Into Another In WordPress?

This lesson guides you on how you can convert any default or custom taxonomy into another taxonomy on your WordPress Website.

Taxonomy is the term used to refer to categories, tags, and other custom taxonomies that may be present within your active theme or plugin or you have created it manually. This lesson guides you on how you can easily convert one taxonomy into another in your WordPress Website.

Term Taxonomy Converter allows you to copy i.e. duplicate or convert or move terms between the taxonomies. Copying a taxonomy means duplicating it to another without deleting or moving the original taxonomy. Whereas converting the taxonomy means, changing it to another taxonomy. This can be done between two or multiple taxonomies while maintaining associated posts.

To convert or copy a taxonomy you simply need to follow these steps:

  1. Navigate to Plugins -> Add New page
  2. Search and install the ‘Term Taxonomy Converter’ plugin
  3. After activation visit Tools -> Term Taxonomy Converter page
  4. You will see various tabs for Tags, Categories, and Custom Taxonomies
  5. Switch to the taxonomy tab you like to convert
  6. Choose Copy or Convert option
  7. Select the taxonomies you want to convert
  8. Use the checkbox to tick the ‘Taxonomy’ in which you want the selected taxonomies to be converted to
  9. Click the ‘Go’ button

Since this plugin collectively works for all tags, categories, and custom taxonomies, you don’t need any other plugin separately for converting default taxonomies such as tags and categories in WordPress. In case if you only want to convert tags and categories then follow this lesson.

How To Convert Categories Into Tags Or Tags Into Categories In WordPress?

It is possible to convert tags into categories or categories into tags in your WordPress Website. There is also a lesson on converting one taxonomy into another but this lesson guides you on how you can easily change a category into a tag or vice versa in WordPress.

For instance, suppose you were frequently using a tag for a long time and now you want to transform it into a category so that you can provide more filters by creating its sub-categories. If you just want to convert tags and categories and not other taxonomies then there is a plugin called Categories to Tags Converter.

How To Convert Categories Into Tags?

  1. Navigate to Plugins -> Add New page on your admin area dashboard
  2. Search and install the ‘Categories to Tags Converter’ plugin
  3. After activation, navigate to Tools -> Import page
  4. Click the ‘Run Importer’ link below the Categories to Tags Converter
  5. Under the ‘Categories’ tab select the categories you want to convert into tags
  6. Click the ‘Convert Categories’ button

How To Convert Tags Into Categories?

The same plugin i.e. Categories into Tags Converter lets you convert tags into categories:

  1. Navigate to Tools -> Import page
  2. Click the ‘Run Importer’ link below to Categories to Tags Converter
  3. Switch to the ‘Tags’ tab
  4. Select the tags you want to convert into categories
  5. Click the ‘ Convert Tags’ button

So this was a simple hany plugin for converting tags and categories on your WordPress site. Now if you want to go deeper into the functions of converting any taxonomy (including tags and categories) into another taxonomy then there is another lesson on the topic.

How To Use Tags And Categories On Pages In WordPress?

Tags and categories in WordPress can be extended to pages. By default, WordPress offers you tags and categories for posts but by activating a plugin you can extend the functionality to pages in your WordPress Website.

There are several plugins that let you create new post types and their custom taxonomies and there are also some plugins that let you assign new taxonomies to posts, pages, and other post types. But this lesson guides you on how you can simply activate tags and categories on pages without manually creating new taxonomies.

Simply navigate to Plugin -> Add New page on your WordPress admin area dashboard to find and install Post Tags and Categories for Pages plugin.

Page Tags & Categories

Upon activation, the plugin automatically activates a function that enables post tags and categories for pages and it also adds the stock WordPress categories for all of your pages. Adding stock means now your website pages will also show up in the archive queries just like posts.

You can create and manage tags and categories in the same way you do for posts. New tags and categories can either be created from the page edit screen or from the Pages -> Categories and Pages -> Tags page on your admin area dashboard. There’s another plugin called Pages with category and tag is also an alternative option for enabling tags and categories on pages.

How To Auto Remove Formatting Tags While Pasting Content In WordPress?

When you run a multi-author blog a common problem that comes to your WordPress site is having different layout styles in different blog posts, which disturb the look of your website.

This happens when some authors don’t remove HTML formatting after copy-pasting content from their Word, Writer, Google Docs, or any other editor to your blog. Hence, the undesired HTML tags and formatting also get into the posts and pages of your website. This lesson guides you on how you can overcome this issue simply by activating a plugin.

The problem can be resolved and safe pasting on your website can be easily implemented by using the Secure Paste plugin. You simply need to navigate to Plugins -> Add New page to find and install the plugin. After activation, the plugin removes any HTML tags from your blog’s posts and pages before inserting them into the database. Thus, it prevents all your website users from pasting undesired HTML tags to post and page content.

The following are the HTML tags that stay and any other HTML tag, attributes, and formatting are automatically removed by the plugin:

<p> <a> (allowed attributes: href, title). <img> (allowed attributes: src, alt, class). <h1> <h2> <h3> <h4> <h5> <h6> <blockquote> <ol> <ul> <li> <em> <strong> <del>

The removal of formatting takes place while your authors edit their post or page content in any status such as scheduled, draft, published, etc. But this fixing of content is only done on the new content i.e. the content created or edited after the activation of the plugin.

Top 7 Plugins To Insert License-Free High-Quality Images In WordPress

There are various free services that offer you license-free high-quality images you can use in your WordPress posts and pages for various illustrative and editorial purposes. In this lesson, you will know about the five best plugins that let you insert such images directly from their source to your posts and pages without leaving your website.

Instant Images

The instant Images plugin lets insert images from Unsplash, Openverse, Pixabay, or Pexels to your posts and pages without ever leaving your website. This is an excellent plugin for users who want to save time by uploading images directly inside their WordPress installation and for developers who want to prototype and develop using real-world imagery.

Inserting Images In WordPress from Unsplash, Openverse, Pixabay and Pexels

Main features of the plugin:

  • Image Search – The Instant Images search lets you quickly find and upload images for any subject in a matter of seconds!
  • Image Orientation – Filter search results by landscape, portrait, or square images.
  • Time Saver – Quickly upload amazing stock photos without leaving the comfort of your WordPress admin.
  • Theme/Plugin Developers – A great tool for developers who want to prototype and develop using real-world imagery.
  • Gutenberg – Instant Images directly integrates with Gutenberg as a plugin sidebar.
  • Media Modal – Instant Images are available as a tab in the WordPress Media Modal.
  • Page Builders – Instant Images integrates with page builders such as Elementor, Beaver Builder, Brizy, and Divi.
  • Edit Image Metadata – Easily edit image filename, alt text, and caption prior to uploading to your media library.
  • Accessibility – Automatically include a relevant alt description for screen readers, visually reduced users, and SEO.
  • Easy to Use – It couldn’t get much more simple, just click an image and it’s automatically uploaded to your media library for use on your site.
  • No Accounts Needed – An account on any service provider is not required for the use of this plugin. Just activate and you’re ready to go.

StockPack

StockPack – Stock photos from Unsplash, Adobe Stock, and more plugin offers you optimized image search in your WordPress site to search images from Unsplash, Adobe Stock, Getty Images, iStock, Pixabay, Pexels, and Depositphotos. The plugin offers you a very simple option in the WordPress media library pop-up box that lets you switch between providers and compare the images.

StockPack – Stock photos from Unsplash, Adobe Stock and more

Main features of the plugin:

Free Assets Library

Free Assets Library – Openverse/Pixabay 600+ Million Images plugin simply lets you search from more than six-hundred-million images, and use the inside your posts and pages. The plugin lets your search and inserts images from Pixabay and Openverse and soon more services are to be added. This plugin has been tested with the 2.1+ version of WordPress.

Main features of the plugin:

  • Zero configuration
  • Download images from Openverse, Pixabay, and (soon more)
  • Easy search from 600+ millions of images.
  • Direct download into the media library.
  • Automatically set the image TITLE tag for SEO purposes.
  • Automatically set the image ALT tag for SEO purposes.
  • Automatically Image attribution (of original image author) in the image description field for SEO purposes.
  • Automatically create SEO-ready image names.
  • 100% safe, model-released images.
  • Quick support

Getty Images

Getty Images are among the world’s leading creators and distributors of still imagery, video, music, and multimedia products, as well as other forms of digital content. The Getty Images plugin gives you access to over 50 million free embeddable images, available for editorial use on your WordPress website.

Main features of the plugin:

  • Search millions of photos, vectors, and illustrations, customized to your Getty Images account.
  • Download and preview comp images before you post.
  • Download, insert, and publish any size image using your existing agreement with Getty Images.
  • Licensed images are saved to your Media Library for future use.

Envato Elements

Envato Elements – Photos & Elementor Templates plugin enables you to explore and import Elementor Templates as well as premium stock photos right from your WordPress admin area dashboard.

Envato Elements – Photos & Elementor Templates

The free version of the plugin gives you access to try thousands of free page and block templates to use within Elementor. All you need to do is browse, import, then customize

Pexels: Free Stock Photos

Pexels: Free Stock Photos offers you high-quality photos that are completely free stock images you can use for personal and commercial purposes. This plugin helps you search, browse and download those photos directly to your WordPress site, giving you the benefits of hosting them (cropping, compressing, caching, etc.).

Pexels Photo In WordPress

Main features of the plugin:

  • Search and browse thousands of free stock photos from Pexels from your WordPress Dashboard
  • Add ANY image to your WordPress Media Library with one click
  • Use the image inside your post/page content
  • Use the image as a Featured Image
  • No attribution is required (really!)

Pixabay Images

Pixabay Images is a free WordPress plugin that enables you to pick free, creative commons and other public domain images from Pixabay and insert them into your posts, pages, and other content.

Pixabay Images

Main features of the plugin:

  • You can easily search Pixabay’s public domain pictures using the “Add Media” button inside the editor.
  • You can filter search results by image type (clipart, photo) and/or orientation (landscape, portrait).
  • You can preview images in paginated search results.
  • Enables direct image uploads to WordPress’ media library.
  • Use of standard media dialogues for editing and inserting images.

So these were some of the best plugins for inserting professionally photographed free high-quality images in your WordPress Website. The first three plugins are great, and we recommend you use the first one as it covers four major services. The last two plugins are also good but these haven’t been updated to the latest version of WordPress but still, they do their job.

How To Make Managed WordPress Website After Registering Your Domain Name?

Once you register your domain name at Sangkrit.net, you simply need to subscribe to a Managed WordPress plan to take your business website online, you may subscribe to WordPress Ecommerce for making an online store. As you do that the automated system guides you step-by-step to set up your website and login to your admin area dashboard.

This lesson guides you on what you have to do next when you are on the admin panel of your dashboard. Although Managed WordPress gives you a complete website by asking you to choose your options and add your business details during its setup process. Still, by reading this lesson you will know how you can customize or change your website anytime on your own.

Login To WordPress Admin Panel

The time you follow the Managed WordPress process of making your website, it asks you to choose a username and password which you use to log in to your website by visiting the yourdomain.com/wp-admin page.

Choose & Customize The WordPress Theme

The next thing you should do is choose a theme. WordPress offers you a wide range of industry-specific themes that you can install from the admin panel of your website.

Simply navigate to Appearance -> Themes and you would be able to browse the free themes, preview them, and choose the one that fits your industry requirements. All you have to do is click ‘Install’, and the theme will install, and then click the ‘Activate’ button to activate the selected theme.

Now navigate to the Appearance -> Customize page to choose your theme options. From here, you can modify the site title, tagline, logo, header, colors, fonts, and other visual elements. Some themes provide a massive range of customization options.

You May Enable The Online Store Option

If you have subscribed to WordPress Ecommerce, you can customize your store settings from the admin panels’ WooCommerce -> Settings page. In case you have not subscribed to WordPress Ecommerce and you want to have an online store then you can install the WooCommerce plugin from your admin area dashboard Plugins -> Add New page by searching for WooCommerce plugin.

Install Necessary Plugins

You can also install other essential plugins to enhance the functionality of your WordPress site. For instance, you may install the ‘Contact Form 7’ plugin if you want to enable visitors to message you directly from your website using a Contact Us page. ‘Yoast SEO’ is a popular plugin for search engine optimization, and the ‘Add To Any’ plugin allows you to add social sharing buttons on posts and pages of your website.

Create Necessary Pages

For adding important information about your business you will need to create the necessary pages. Simply navigate to Pages -> Add New page in your admin area dashboard. Add a title, content, images, videos, and other important information to your page, and then click the Publish button. Repeat the process to create more pages such as About, Services, Privacy Policy, Contact, etc.

Create Navigation Menu

You have created the pages, maybe you have also enabled the eCommerce store, etc on your website. Now it is very important to let the visitors know what you are offering, and where they can find the information they are looking for on your website. For this, you need to display navigation menus on your website.

Simply navigate to the Appearance -> Menus page and you would be able to create menus having categories, blog, store, about, contact, and other pages of your website. The page allows you to arrange the menu items to your desired order and assign the menu to the appropriate menu location such as the header on your website.

Start Blogging Your Business

You can easily add new blog posts from the Posts -> Add New page, the same page allows you to create and add categories and tags. Later on, these can be managed from the Posts -> Category and Posts -> Tags page.

Similarly, you can create and manage products from the Products menu on your admin area dashboard.

Your Website Is Ready

Following these steps, you get your website ready for public view. You can always customize the settings, look, and feel of your website from the admin area dashboard just as we have discussed above.

WordPress is a user-friendly system, as you start working on the admin panel of your website, you come to know about all its features on the go. And since you have subscribed to Managed WordPress, it provides automatic setup, backups & restores, malware scanning, and software updates paired with 24/7, award-winning support. 

How To Add WhatsApp Chat Option On WordPress Website?

WhatsApp has a massive user base of more than two billion users worldwide. Since it offers real-time communication, it can be a convenient platform to enable your visitors to send queries, messages, images, videos, and documents, facilitating quick and efficient communication.

This lesson guides you on how you can easily add a WhatsApp chat button on your WordPress Website to enable your website visitors to chat or contact you by simply clicking the button. And you can easily respond to their queries, provide product information, address concerns, and offer personalized assistance from your smartphone.

How To Add WhatsApp Chat In WordPress?

Simply navigate to Plugins -> Add New page to find and install the Click to Chat – HoliThemes plugin on your WordPress site. Upon activation, visit the ‘Click to Chat’ page from the admin menu on your dashboard.

WhatsApp for WordPress

On this page, add your WhatsApp or Business WhatsApp number, you can customize the prefilled greeting message, and enable Web WhatsApp which also shows up on desktop and laptop computers.

There are several other options this plugin offers you such as WooCommerce compatibility features, page level settings, display settings, customized buttons and messages on product pages, several styles, and customizations, etc.

WhatsApp WordPress Plugin

Select your options, and save changes, and the WhatsApp chat button will com visible on your website. By clicking this button smartphone users would be able to chat with you on the WhatsApp Smartphone App and desktop users will be navigated to WhatsApp Web Chat.

How To Add WhatsApp Sharing Button In WordPress?

WhatsApp is an instant messaging platform that works on Android, iPhone, and other smartphone devices. Mobile Internet users use WhatsApp more frequently than other social networking websites. In this lesson, you will learn how you can add WhatsApp sharing button on your WordPress Website.

Adding WhatsApp Sharing Button

Simply navigate to your admin area dashboard Plugins -> Add New page to find and install AddToAny Share Buttons. Upon activation, visit its settings page to select the sharing buttons you want to add before or after the posts on your website.

You can add sharing buttons for WhatsApp, Instagram, Facebook, Twitter, and many other social media websites. Select the sharing buttons’ icon size, and their placements, and save your changes. That’s it, the sharing buttons would get visible on your posts and pages.

WhatsApp Sharing Floating Bar

The plugin also allows you to add a sticky floating bar, simply switch to the ‘Floating’ tab and select the placement options.

Adding WhatsApp Sharing Button With Jetpack Plugin

Jetpack plugin users can easily add WhatsApp sharing button from their admin area Settings -> Sharing page.

Simply scroll down to the ‘Sharing Buttons’ section and drag the WhatsApp button from the ‘Available Services’ box to the ‘Enabled Services’ box. Save your changes and the WhatsApp sharing button will be added by the plugin.

How To Auto Rename Images Based On Post Title In WordPress?

You can set WordPress to automatically rename images and other media files on upload in order to better the SEO of your website. Images can be automatically renamed on the basis of the post title or the site URL.

File Renaming on Upload is a WordPress plugin that automatically renames media files as they are uploaded so that they can be exhibited without any problems. It renders filenames properly with accents and special characters. It also allows you to use your post title or prefix website domain name to make your images more SEO friendly.

  • Rename files on upload based on the post title
  • Rename files on upload based on the Site URL
  • Rename files on upload based on the current date
  • It updates the file permalink based on file renaming
  • Remove accents and special characters from filenames on upload

To start using the plugin simply navigate to Plugins -> Add New page on your dashboard to find and install File Renaming on Upload plugin. Once activated, navigate to its Settings -> File Renaming page to enable the plugin and set your rule for file uploads.

  1. Add Site URL: Insert “www.yoursite.com” at the beginning of the file name. Ex: yoursite.com_filename.jpg
  2. Replace File Name by Date Time: Replaces filename by date-time, like “2013-07-18_21-48-19”
  3. Lowercase: Converts all characters to lowercase
  4. Remove Accents & Special Chars: Removes these special chars:? + [ ] / \ = < > : ; , ‘ ” & $ # * ( ) | ~ ` ! { }

You simply need to tick the options you like to enable on image upload and save your changes. The plugin will automatically work each time a new file is uploaded on your WordPress website using Media Library and Add Media thick box on post-edit screens.

How To Add A Secondary Title In WordPress Posts & Post Types?

You can add a subtitle i.e. secondary title to your posts, pages, and custom post types. By default, WordPress doesn’t provide you with this feature but still you have it on your WordPress Website. This lesson will guide you on how you can add a secondary title to your posts and other content.

Secondary Title is a free plugin that enables a subtitle title field for posts, pages, and other post types in WordPress.

Secondary Title on a WordPress Post

Unlike to other subtitle plugins, it prefixes or suffixes secondary title with the main post title which looks something like this: “This is my first blog post: Hello World!”. You can either use this functionality sitewide or enable it selectively over post types, categories, or only on some individual posts.

How To Add Secondary Title In WordPress Posts & Post Types?  3

To enable the functionality of the secondary title, navigate to Plugins -> Add New page to find and install the Secondary Title plugin. After activation, the plugin adds a new title field below the main title fields on post-edit pages.

Secondary Post Title and Subtitle Functionality in WordPress

It offers you a set of options you can manage from your admin area Settings -> Secondary Title page. On the settings page, you can select the post types where you want the secondary titles to be activated. You may select none if you want to use it on all available post types.

How To Add Secondary Title In WordPress Posts & Post Types?  1

The plugin also allows you to select categories to enable secondary titles. Here also, select none to include all available categories. You can also limit secondary title functionality for certain posts and pages by adding their IDs to the post IDs box.

How To Add Secondary Title In WordPress Posts & Post Types?  2

The default format for title and secondary title is %secondary_title%: %title% which shows a prefixed secondary post title on the main post title but you can change this format by interchanging the locations of variables and using your own heading tags in between. Simply use %title% for the main title and %secondary_title% for the secondary title.

How To Create & Add Favicon To Your WordPress Website?

Favicon shows up on the browser’s tab above the web address bar. These are also shown on bookmarks, mobile apps, and Google displays them on mobile search results.

You can have a custom favicon for your website. In this lesson, you will learn how to make and assign favicon on your WordPress Website.

Before favicons were creased as special tiny file as favicon.ico and were uploaded to the root directory of the website. But now WordPress lets you use any image file as the favicon of your website.

How To Assign Any Image As Favicon In WordPress?

You simply need to navigate to your admin area and follow these steps:

  1. Navigate to Appearance -> Customise page
  2. Click on the ‘Site Identity’ tab on the left menu.
  3. Scroll down to ‘Site Icon’ section
  4. Click on ‘Select Site Icon’
  5. Upload the image file
  6. Click ‘Publish’ button

That’s it, WordPress will now convert your image as the favicon of your website.

How To Create Favicon Images?

Although, WordPress lets you use any image as favicon but you may also create a custom favicon image for your website, as that is going to improve your identity on the internet.

There are various business tools that lets you create graphical images, banners, and logos, etc.. Leading business tools for designing images are Canva, MemberSpace, Adobe’s Online Graphic Maker, etc. You will easily find them by searching Google.

For generating a free favicon, you may use favicon.io service, there are many more services that you will easily find by searching on Google.

How To Find Free Favicon Images?

If you simply want to use a favicon image that matches the niche of your website then there are various free services that offers you free images and vector graphics.

If you want to use any image or vector graphic as your favicon then there are services that include pixabay.com, pexels.com, openverse.org, and commons.wikimedia.org, you will find the images by searching keywords and filtering the results.