• Resolved sianalcock21

    (@sianalcock21)


    We have the plugin working to set posts/pages and other custom post types to ‘Draft’ upon expiry but now we want to set or replace a category BUT the category is from a custom taxonomy that we have applied across all post types.

    But…when I try to enable this feature, I see this message:

    More than 1 heirachical taxonomy detected. You must assign a default taxonomy on the settings screen.

    I have already modified the settings several times and in the ‘Post types’ tab, I have selected my custom taxonomy for each of my post types. In the General settings tab, there is an option to set a default Category but it is only looking to the default WordPress category. Does the plugin only work with the native ‘category’ or can I use a custom taxonomy?

Viewing 2 replies - 1 through 2 (of 2 total)
  • I had similar issue with default Category and find out ‘_expiration-date-taxonomy’ meta field was empty in ‘postmeta’ table.

    When in
    post-expirator/classes/Facade.class.php
    line 249
    $taxonomyName = isset( $opts[‘categoryTaxonomy’] ) ? $opts[‘categoryTaxonomy’] : ”;
    I replace with
    $taxonomyName = isset( $opts[‘categoryTaxonomy’] ) ? $opts[‘categoryTaxonomy’] : ‘category’;
    to set default taxonomy it works well.

    Plugin Author Steve Burge

    (@stevejburge)

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Category: replace / add/ remove not working with custom post types’ is closed to new replies.