Forum Replies Created

Viewing 9 replies - 1 through 9 (of 9 total)
  • Thread Starter David Mondok

    (@davidmondok)

    I found a better solution by going through the plugin’s code. If anybody is looking for a cleaner solution than setting up some redirection, here it is

    add_filter('tribe_events_rewrite_base_slugs', static function(array $bases): array {
        unset($bases['archive']);
        return $bases;
    });

    I guess one could use this to disable other pages as well.

    Thread Starter David Mondok

    (@davidmondok)

    Hi,

    I think there’s a misunderstanding ?? I simply want to completely disable the calendar display.

    cheers

    Thread Starter David Mondok

    (@davidmondok)

    Hi,

    sorry about being so vague.

    I’m talking about in-site search via Relevanssi.

    Any post that is blocked with WP-Members doesn’t show up in the in-site search results, except for users that have the required permissions. We tried hooking into the filter wpmem_post__not_in and return an empty array if is_search() === true, but that didn’t work. Hope you have a solution and thanks in advance for your help.

    Updated to 1.3.1 but still getting the same error.

    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)
    
    Thread Starter David Mondok

    (@davidmondok)

    Hi,

    thanke mate. I just checked and saw, that the “Once per Day” option is not the default WordPress schedule but one added by a plugin. Maybe you can make sure, that you prioritize the default schedules in case the plugin that added the schedule gets deactivated.

    cheers

    Thread Starter David Mondok

    (@davidmondok)

    Hi,

    thanks for the quick reply. Anyone looking to add back the article:tag meta tags oyu can find our solution here: #15101 (comment)

    • This reply was modified 4 years, 5 months ago by David Mondok.
    • This reply was modified 4 years, 5 months ago by David Mondok.
    • This reply was modified 4 years, 5 months ago by David Mondok.
    Thread Starter David Mondok

    (@davidmondok)

    Yeah, that seems to be the problem.

    You have to check the returned array from wp_get_schedules and filter it to contain only unique “interval” and “display” value combinations.

    • This reply was modified 4 years, 5 months ago by David Mondok.
    Thread Starter David Mondok

    (@davidmondok)

    Hey Rich,

    adding <meta name="robots" content="noindex, nofollow" /> is definitely a great and absolutely necessary precaution to reduce the chance of having that page indexed by search engines. I’m specifically choosing the word “reduce” and not “eliminate” as we have experienced cases of pages being indexed despite the meta tag being correctly set. That’s the reason why we think it would be a good addition to remove the login-page from the sitemap as well. Just as another precaution.

    I haven’t looked into it in detail but from the top of my head, I can’t think of a non-plugin-specific approach to tackle this problem.

    I guess one would have to hook into plugin specific filters to remove the page from the sitemap.

    For Yoast the code would be

    add_filter( 'wpseo_exclude_from_sitemap_by_post_ids', function () {
        // replace 1 with login-page post ID
        return array( 1 );
    } );

    Here’s the Yoast documentation

    For Rank Math this would be a starting point

    add_filter( 'rank_math/sitemap/entry', function( $url, $type, $object ) {
    	// if login page return null
    
    	return $url;
    }, 10, 3 );

    Here’s the Rank Math documentation

Viewing 9 replies - 1 through 9 (of 9 total)