Permalink
-
Hello,
i’ve been trying to customize the permalink of my downloads.
desired permalink: https://mypage.com/download/$download_category/$download_name
where $download_category and $download_name are variable.the format is achieved via the following filters:
* dlm_cpt_dlm_download_args: set
"rewrite" => ['slug' => '/download/%download-category%']
* post_type_link:return str_replace("%download-category%", $download->get_primary_category, $link)
within the download monitor settings ‘download-endpoint’ is empty and endpoint value is ‘download slug’
This leads to WP showing me the permalink in the desired format.
unfortunately the permalink for a download leads now always to the frontpage. no 404, no download error message.I suspect download monitor to overwrite the final permalink after my filters are executed.
Is it possible to set the permalink manually & dynamically?
- The topic ‘Permalink’ is closed to new replies.