Tag Archives: Posts

How To Write Blog Posts In WordPress?

Posts are the content entries used for showing articles and news content on your website. They are generally displayed in reverse chronological order on your home page or blog page. In contrast to pages, posts are un-hierarchical content types included in your website’s RSS feed.

As soon you install WordPress, you will notice a post with the title ‘Hello World!’. It is a sample WordPress post that you can edit or delete from the Dashboard -> Posts -> All Posts page. In the same way you can write new posts from Posts -> Add New page. In this lesson, you will learn how to create your first post in WordPress.

Step-1 Login To Your WordPress Site

First, log in to your website by visiting yourdomain.com/wp-admin page in your web-browser.

Step-2 Visit ‘Add New’ Post Screen

As soon you log in to the WordPress admin area, you see the dashboard’s home screen (Dashboard -> Home). Now navigate to Posts -> Add New screen as shown on the given screenshot:

Step-3 Start Writing

Add a title and start writing your content. Use the ‘+’ button to insert custom blocks for adding images inside your posts. For instance, To insert any image from your computer:

  1. Click the ‘+‘ button
  2. Click the ‘Image‘ icon
  3. Click ‘Upload Files‘ to upload the image and click insert image.
  4. You can also add a custom link to the image, set its alignment, or choose a custom size.

The image is inserted on the location of your cursor.

On the right hand side you will be noticing a ‘Categories‘ metabox, from there you can select a category for your post. If this is your first blog post, you will need to create a new category, simply click ‘Add New Category‘ link, give a name to your category and add it.

Similarly ‘Tags‘ metabox enables you to add keywords related to your post. Tags and Categories are for grouping similar posts together. The main difference between tags and categories is categories are hierarchical taxonomies where you can create child or subcategories whereas tags are given by simply typing keywords and your post gets un-hierarchical grouped in the given tag.

Post Excerpts is another metabox present at the bottom of post content box. Post excerpts are the small summaries of posts showing up on the multipost pages like home page, the blog post, tags & category archives pages, and on the search engine result pages. Adding an excerpt is an optional thing to do, if you don’t give post excerpts then it will be automatically taken from the beginning lines of your post.

Step-4 Publish Your Post

Finally, when you are done writing your post click the ‘Publish‘ button and your post will go visible to your website visitors. You may also use the ‘Save Draft‘ button to save your post as a draft in Posts -> All Posts -> Drafts (Link) for completing and publishing it in the future.

Some other options of the right admin sidebar include Status which shows whether your post is a draft, under review or published, Visibility option lets you control post visibility i.e. you can make your post public (default) or private (only for logged in users) or password protected (you can lock it with a custom password) and the ‘Move to Trash‘ option that deletes your blog post.

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.

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 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 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 Use Separate Themes On Different Pages In WordPress?

You can assign a separate theme on home, posts, search, archive and other pages of your WordPress site.

In this lesson, you will learn how easily you can get control over the look and feel of your website by assigning different themes to different areas of your website.

Simply navigate to your admin area dashboard to find and install Multiple Themes plugin. After activation visit your admin area Dashboard -> Appearance -> Manage Themes page to assign different themes over different sections of your website.

The plugin will enable you to choose

  1. A Theme for All Posts
  2. A Theme for All Pages
  3. A Theme for Site Home
  4. A Theme for an Individual Post
  5. A Theme for an Individual Page
  6. A Theme for Selective Archive Page
  7. A Theme for Selective Search Pages, Terms, and more

The plugin enables you to choose a different theme for everything and override the active WordPress theme on your website.

Updating WordPress Theme Options

Now the question arises how you would be able to change the theme options for any theme you want? Well that is possible, you will find the complete process in this lesson.

The plugin doesn’t changes the active WordPress theme on your website. Instead, it works by dynamically overriding the settings on the pages and sections selected by you.

How to Switch Post Types In WordPress?

By switching post types you can convert any post into a page or custom post type, you can also convert any page into a post or custom post type or any custom post type into a page or post.

There are various options available to bulk convert post types in your WordPress site. But you can also individually switch any post type from the post edit screen.

Post Type Switcher is a WordPress plugin that adds a simple post-type drop-down to your post edit screens. Thus, allowing you to reassign any post to a new post type while editing your post.

Once activated, it can convert nearly every combination of posts, pages, and custom post types on your WordPress website:

  1. Post to Page
  2. Page to Post
  3. Post to Custom Post Type
  4. Custom Post Type to another Custom Post Type

While converting any post the invisible post types, such as revisions, menus, etc, are excluded. But, in case if you need to access invisible post types, you can adjust the boundaries of the plugin by using the ‘pts_post_type_filter’ filter.

Apart from this, bulk editing allows you to select all the posts in a certain type and convert them to a new type with one quick action.

How To Send User Directly To Post On Single Search Result?

If you have a small blog and you want to send the user directly to the post especially when any search result comprises of just one post or page. In such a case you can automatically redirect the user to that result.

The new WordPress plugin called One Search Result allows you to do that on your website. Simply install-activate it and it will start to work automatically. The plugin works with any theme and any objects that would be shown on your search results page.

How To Display Inline Related Posts In WordPress?

Most of the websites display related content at the end of the article, however if you write long articles on your website, the user would probably be seeing related posts at last i.e. after scrolling entire content. You can make your website highly engaging by displaying interesting related content in between the post, may be between headings or paragraphs etc.

Continue reading How To Display Inline Related Posts In WordPress?

How To Display WordPress Posts In Grid Layout?

Traditional vertical layout of displaying posts is common in most WordPress themes. Although it is good for personal blogs and small websites but takes a lot of space. In this lesson we will discuss about the different ways of displays posts using a grid layout which is great for multi-author WordPress websites with large number of posts.

Continue reading How To Display WordPress Posts In Grid Layout?

How To Auto-Convert WordPress Post Title Into Proper Case?

Earlier we have discussed about converting post content into proper case. We also posted lessons on automatically converting first alphabet to uppercase after full-stop and beautifying content text by auto-fixing case, punctuation etc.

Now in this lesson you will see how to convert your WordPress blog post title in proper case with a click of a button.

Continue reading How To Auto-Convert WordPress Post Title Into Proper Case?

How To Display Last Updated Post Date In WordPress?

By default WordPress shows you publish date and there is no way for reader to know about the recent changes made to any post in your WordPress website.

You must have noticed certain news websites running over WordPress shows last modification date on their articles. In this lesson you will learn how you can easily let your visitors know that the post was modified.

Continue reading How To Display Last Updated Post Date In WordPress?

How To Use SEO Friendly URL Structure In WordPress?

Default WordPress URL structure i.e. permalink structure is not considered as SEO friendly. Search engine likes permalinks with post name as slug in them.

SEO friendly URL structure increases your chance of better ranking on search engines like Google etc. Likewise search engines are the largest source of traffic to popular blogs and organic traffic also gives you better ad revenue.

A SEO friendly URL structure is a user-friendly URL structure in which a visitor can know where he is going to simply by looking at the URL. This also works for search engines as well.

Continue reading How To Use SEO Friendly URL Structure In WordPress?

Find & Use Google Images By License From WordPress Editor

Visiting Google Image Search, searching for images by keyword filtering them by license, saving locally, then uploading and inserting them inside your post content is a time consuming job.

In this lesson you will learn about doing same thing very quickly and easily right from your post edit screen.

Continue reading Find & Use Google Images By License From WordPress Editor

Content Egg – Automatically Display Additional Content On WordPress Posts

You can easily set your WordPress website to display additional content before, after or in-between via shortcodes on  your posts, pages and other custom post types.

This way you can not only make your content look rich but add additional useful information and better monetize your WordPress website.

Continue reading Content Egg – Automatically Display Additional Content On WordPress Posts

How To Add NoFollow To WordPress Insert Link Option?

Your WordPress post links are also responsible for your website’s reputation on search engines like Google etc. Linking to pirated and similar websites is not considered good for SEO. While WordPress allows you to open a link in a new window but it doesn’t provides you any feature to turn inserted link “nofollow”.

Continue reading How To Add NoFollow To WordPress Insert Link Option?