How Do I Add Related Posts Without Plugins in WordPress?
Adding related posts without plugins in WordPress is a bit more complicated than just adding a link from a post. You need to create a custom post type and add a custom taxonomy.
To create a custom post type, go to the “Posts” screen in WordPress and click the “Add New” button. In the “Post Type” menu, select “Related Posts.”
In the “Post Type” settings, you need to specify the following:
Name: The name of the post type
The name of the post type Slug: The slug for the post type
The slug for the post type Taxonomy: The taxonomy for the post type
The taxonomy for the post type Display: The display name for the post type
The display name for the post type Permalink: The permalink for the post type
The permalink for the post type Post Type: The post type for the posts in the post type
The post type for the posts in the post type Show meta data: Check the box to show meta data for the post type
Click “Save Changes” to finish creating the post type.
To add a custom taxonomy, go to the “Posts” screen in WordPress and click the “Add New” button.”
In the “Taxonomies” settings, you need to specify the following:
Name: The name of the taxonomy
The name of the taxonomy Slug: The slug for the taxonomy
The slug for the taxonomy Taxonomy: The taxonomy for the post type
The taxonomy for the post type Display: The display name for the taxonomy
The display name for the taxonomy Permalink: The permalink for the taxonomy
The permalink for the taxonomy Post Type: The post type for the posts in the taxonomy
The post type for the posts in the taxonomy Show meta data: Check the box to show meta data for the taxonomy
Click “Save Changes” to finish creating the taxonomy.
Now that you have created the post type and taxonomy, you need to add the custom fields to your posts. To do this, go to the “Posts” screen in WordPress and click the “Add New” button.
In the “Post Type” menu, select “Related Posts.”.
Title: The title of the post
The title of the post Description: The description of the post
The description of the post Tags: A list of tags for the post
A list of tags for the post Content: The body of the post
In the “Custom Fields” settings, you need to specify the following:
Title: The title of the custom field
The title of the custom field Description: The description of the custom field
The description of the custom field Type: The type of the custom field
The type of the custom field Value: The value of the custom field
The value of the custom field Display: The display name for the custom field
The display name for the custom field Placeholder: The placeholder text for the custom field
The placeholder text for the custom field Autocomplete: Check the box to autocomplete the custom field
Click “Save Changes” to finish adding the custom fields to your posts.
Now that you have added the custom post type and taxonomy, added the custom fields, and set the display name and permalink for the post type, you are ready to add the related posts.
To add related posts, go to the “Posts” screen in WordPress and click the “Add New” button.”
In the “Related Posts” settings, you need to specify the following:
Post Type: The post type for the related posts
The post type for the related posts Slug: The slug for the related post
The slug for the related post Title: The title of the related post
The title of the related post Description: The description of the related post
The description of the related post Tags: A list of tags for the related post
A list of tags for the related post Content: The body of the related post.