• Resolved Fernando Claussen

    (@fclaussen)


    At first, I thought it was the environment I was in because I tested it locally. But it turns out it only works for posts and not pages for example.

    It shows up but the settings get reset every time I publish

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author popeating

    (@popeating)

    Hello Fernando, sorry for the late reply, we worked out on the plugin and relseased a new version that would support pages and custom post types.
    Be careful on pages, since they can sometimes be present in menus and this can lead to 404 once expired

    Hi,

    I’m on V1.1 and WordPress 5.6 and have the same problem. Works very well with the default post type, but with none of the custom post types. This is the error I’m getting in Gutenberg.

    
    Error: An error occurred while running 'mapSelect': Cannot read property 'sidebar_toogle' of undefined
    The error may be correlated with this previous error:
    TypeError: Cannot read property 'sidebar_toogle' of undefined
        at https://www.website.com/app/plugins/post-expire-date-sidebar/expire.js?ver=5.6:32:71
        at Object.current (https://www.website.com/wp/wp-includes/js/dist/data.min.js?ver=777f925bfe1a2aea2a86b7b9ae6aed25:2:30276)
        at e (https://www.website.com/wp/wp-includes/js/dist/data.min.js?ver=777f925bfe1a2aea2a86b7b9ae6aed25:2:29903)
        at https://www.website.com/wp/wp-includes/js/dist/data.min.js?ver=777f925bfe1a2aea2a86b7b9ae6aed25:2:30068
        at https://www.website.com/wp/wp-includes/js/dist/data.min.js?ver=777f925bfe1a2aea2a86b7b9ae6aed25:2:24335
        at Array.forEach (<anonymous>)
        at o (https://www.website.com/wp/wp-includes/js/dist/data.min.js?ver=777f925bfe1a2aea2a86b7b9ae6aed25:2:24307)
        at https://www.website.com/wp/wp-includes/js/dist/data.min.js?ver=777f925bfe1a2aea2a86b7b9ae6aed25:2:21519
        at p (https://www.website.com/wp/wp-includes/js/dist/data.min.js?ver=777f925bfe1a2aea2a86b7b9ae6aed25:2:11936)
        at https://www.website.com/wp/wp-includes/js/dist/redux-routine.min.js?ver=8ec41c688c5daad1d264d85374a1c8b0:2:9797
    
    Original stack trace:
        at We (https://www.website.com/wp/wp-includes/js/dist/data.min.js?ver=777f925bfe1a2aea2a86b7b9ae6aed25:2:29695)
        at https://www.website.com/wp/wp-includes/js/dist/data.min.js?ver=777f925bfe1a2aea2a86b7b9ae6aed25:2:30251
        at we (https://www.website.com/wp/wp-includes/js/dist/vendor/react-dom.min.js?ver=16.13.1:84:293)
        at He (https://www.website.com/wp/wp-includes/js/dist/vendor/react-dom.min.js?ver=16.13.1:97:464)
        at zj (https://www.website.com/wp/wp-includes/js/dist/vendor/react-dom.min.js?ver=16.13.1:228:406)
        at Th (https://www.website.com/wp/wp-includes/js/dist/vendor/react-dom.min.js?ver=16.13.1:152:223)
        at tj (https://www.website.com/wp/wp-includes/js/dist/vendor/react-dom.min.js?ver=16.13.1:152:152)
        at Te (https://www.website.com/wp/wp-includes/js/dist/vendor/react-dom.min.js?ver=16.13.1:146:151)
        at https://www.website.com/wp/wp-includes/js/dist/vendor/react-dom.min.js?ver=16.13.1:61:68
        at unstable_runWithPriority (https://www.website.com/wp/wp-includes/js/dist/vendor/react.min.js?ver=16.13.1:25:260)
    

    Updated to 1.3.1 but still getting the same error.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Not working for other post types’ is closed to new replies.