6.2.1. Post

This section of the documentation includes the details of the settings available directly under General Settings > Post tab.

6.2.1.1. Allow Comments

When this settings is checked, WordPress’ comments feature will be enabled for the posts that are saved by the plugin.

6.2.1.2. Post Status

This settings defines the status of the posts crawled by the plugin. The post status is the post status that is set when creating a post in WordPress. For example, if you want the posts to be published immediately after they are saved, select Publish. If you want to not publish the posts immediately such that you want to review them before publishing, you can select Pending or Draft. If you want the posts to be shown only to the administrators, you can select Private. You can read more about post statuses of WordPress here.

6.2.1.3. Post Type

WordPress allows many post types to be defined. The posts you create in WordPress using Posts > Add New link available in your admin panel’s sidebar are of post type. The pages you create by clicking Pages > Add New are of page type. The media items that are available in Media > Library page of WordPress are of attachment type. These are some of the WordPress’ already-defined post types.

In addition to already-defined post types, WordPress allows any theme or plugin to define their own post types if they want. For example, WP Content Crawler defines wcc_sites post type so that you can create site settings. Another example can be WooCommerce’s product post type, which is used for WooCommerce products.

Using this setting, you can define the post type of the posts saved by the plugin. This setting allows you to create posts for any post type whether it is a WordPress-defined one or a custom one defined by a plugin or a theme.

6.2.1.3.1. How to find the name of a post type

Let’s say you installed a plugin or theme. You know that it has a custom post type. You want to create posts in that type but you do not know its name.

You can basically get the name of the post type from the URL of the page that shows a list of posts which are created in that type or from a post creation page. Let’s see a few examples. The following table contains the pages and their URLs.

Table 6.13 Pages and their URLs from which you can get the name of their post type. The post types are shown in bold.
Page (Plugin/Theme) Relative URL
Pages > All Pages (WordPress) wp-admin/edit.php?post_type=page
Pages > Add New (WordPress) wp-admin/post-new.php?post_type=page
Content Crawler > All Sites (WP Content Crawler) wp-admin/edit.php?post_type=wcc_sites
Content Crawler > Add New (WP Content Crawler) wp-admin/edit.php?post_type=wcc_sites
Products > All Products (WooCommerce) wp-admin/edit.php?post_type=product
Products > Add New (WooCommerce) wp-admin/post-new.php?post_type=product
Movies > Your Library (WP Movie Library) wp-admin/edit.php?post_type=wpmovielibrary
WooCommerce > Orders (WooCommerce) wp-admin/edit.php?post_type=shop_order
WooCommerce > Coupons (WooCommerce) wp-admin/edit.php?post_type=shop_coupon

The bold parts of the URLs shown in Table 6.13 are the post types registered to WordPress. All post types registered to WordPress are available to be selected in Post Type setting. Hence, you can simply find the post type from the URL of the page and select it in Post Type setting. For example, to save a post as a WooCommerce product, you should select product for this setting.

6.2.1.4. Post Category Taxonomies

By default, in Category URLs setting, the plugin displays categories that are created in WordPress’ Post > Categories page. However, categories of custom post types might not use these categories to store their posts. Therefore, when you select a category defined in WordPress’ Post > Categories page to be assigned to the posts whose post type is not post (see Post Type), they will not recognize that category. This setting’s purpose is to let you define custom post type’s custom categories so that you can select them in category_map setting. By this way, the posts will be saved into the custom post categories which are created for the custom post type you selected in Post Type setting.

This setting allows you to define many custom categories. Each definition must have two values, which are taxonomy and name/description. These are defined as follows.

Taxonomy
Write the taxonomy name of the custom post category
Name/Description
Write a name that will help you differentiate categories defined for the custom post type when you see them in Category URLs setting. You can write any name. For example, if this is a category that stores movies, you can write Movie. The value you enter here will be displayed in Category URLs setting so that you can easily pick the right category.

6.2.1.4.1. How to find a custom category’s taxonomy

As it is done when finding custom post types (see How to find the name of a post type), you can use the category listing page’s URL to find the taxonomy of the custom post category.

Let’s see a few examples. Following table shows custom category pages and their URLs.

Table 6.14 Custom category pages and their URLs. Taxonomies are shown as bold.
Custom Category Page (Plugin/Theme) Relative URL
Products > Categories (WooCommerce) wp-admin/edit-tags.php?taxonomy=product_cat&post_type=product
Movies > Collections (WP Movie Library) wp-admin/edit-tags.php?taxonomy=collection&post_type=movie
Posts > Categories (WordPress) wp-admin/edit-tags.php?taxonomy=category

The bold parts of the URLs shown in Table 6.14 are the taxonomy values that you should enter into taxonomy input of this setting. For example, for movie collections, you should enter collection.

6.2.1.5. Post Author

The user selected in this setting will be the author of all posts created by the plugin.

6.2.1.6. Maximum number of tags

Enter the maximum number of tags a post that is saved by the plugin can have. Because the tags are retrieved from the target page’s source code by using CSS selectors, there might be a lot of tags matching the CSS selectors you define. This setting removes the excessive tags if the number of tags are greater than the value defined in this setting. For example, if there are 10 tags in the post created by the plugin, and this setting’s value is set to 5, only the first 5 tags of the found 10 tags will be assigned to the created post.

6.2.1.7. Change Password

Check this setting’s checkbox if you want to assign a password for all of the posts that will be saved by the plugin.

6.2.1.8. Post Password

Define a passwords for the posts that will be created by the plugin.

Note

The value you enter here will be stored as raw text in the database, without encryption. If anyone accesses your database, he/she will be able to see your password.

Note

The password set in this setting will not change any previously-assigned passwords.

Note

This setting is visible only if Change Password is selected.

The input fields of this setting are explained below.

Old Password
Password that was assigned previously, if exists. If none exists, leave this empty.
New Password
New password for the posts that will be created by the plugin. To assign no password, leave this input empty.
New Password Again
Enter the new password again. To assign no password, leave this input empty.

6.2.1.9. Set srcset attributes of saved media when possible

HTML element’s srcset attribute is used to display images with the most suitable sizes according to the screen sizes of the devices that are used to display your web page (see Responsive Images as Mozilla). When you enable this setting, the plugin will try to set the value of srcset attribute of the saved media items. This typically works when saving posts using the Tools page of the plugin. It will probably not work when saving the posts automatically.

Important

This is an experimental feature.