Join our new community forum for support & discussion

Join Now

Home Support Extensions Requests Chang slug code not compatible with ‘Request extension’

Chang slug code not compatible with ‘Request extension’

  • Author
    Posts
  • robertv

    Hi,
    We’ve found a bug in the ‘Requests extension’ when we want to implement this script (the code itself works fine). When the code snippet is active the ‘Request don’t get submitted and the page only reloads without any message of moderation or successful. Nothing is shown on the request page.

    But when the code is disabled (and the settings/permalink is saved again) suddenly all the request get processed and shown.

    add_filter('hivepress/v1/post_types', function($args) {
        $args['listing']['rewrite']['slug']='place';
    
        return $args;
    });


    https://hivepress.io/support/topic/best-way-of-changing-slug/#post-8296

    Can you please find fix so we can use the code to change the listing/ name?

    Regards,
    Robert

    ihor developer

    This is strange, this code snippet shouldn’t interfere with Requests, please make sure that the “place” slug is not reserved for other page or post type. You can also check if there are any caching plugins that may cause this issue (e.g. Jetpack or Litespeed cache), this may not be related to the code snippet.

Viewing 2 posts - 1 through 2 (of 2 total)

New Reply

This forum has been archived and is no longer accepting new posts or replies. Please join our new community forum for support & discussion.