• Hi, I am creating the restyling of a directory website using Voxel theme.
    The website is really indexed on Google and it is important the url ‘shops’ structure can’t be changed.
    When I add a new shop, it will be on pending (admin approval) and the new structure is not respected. In Settings, I have chosen ‘auto-update’ but nothing to do.
    So each time, I need to click on ‘use default custom permalink’ in order to save the shop with my chosen structure url.
    https://ibb.co/VC1NfBp
    https://ibb.co/S6b3M9t

    For me it is really important to have this structure when an user will add a new shop and it cannot be changed in the future.

Viewing 1 replies (of 1 total)
  • Plugin Author Maciej Bis

    (@mbis)

    Basically, the custom permalinks used by Permalink Manager are stored statically. Therefore, if you save the pending post before selecting “italia” and “cat” terms, the custom permalink will not include them. If you have enabled “auto-update” mode, and afer the terms are selected the custom permalink should be generated once again in the correct format when the post is saved or published (even if you do not click on “Use default custom permalink”.

    This may not function like this if you let users add new posts from the front-end form. Actually, Voxel like most of the plugins that allow it, save the new post object first (this is also when the custom permalink is generated) and then assign the terms to the newly formed post object, which already has the custom permalink generated. In other words, when the custom permalink is saved, the terms are not yet assigned.

    The problem here is that Voxel theme does not include any hooks that would allow to trigger “update custom permalink” function.

    As of now, the only solution to consider would be to prevent Permalink Manager from generating the custom permalinks for pending posts. This way, they would be generated correctly only after they are approved & their status is changed to “publish”:

    https://permalinkmanager.pro/docs/exclude-content-types/#4-exclude-drafts-pending-posts

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.