Forum Replies Created
-
AuthorPosts
-
Ernest Marcinko
KeymasterYes, that explains it.
You can do the translation here: https://i.imgur.com/8mt3H68.png
Ernest Marcinko
KeymasterOkay!
Ernest Marcinko
KeymasterYou cannot access this content.
Ernest Marcinko
KeymasterYou cannot access this content.
Ernest Marcinko
KeymasterYou cannot access this content.
Ernest Marcinko
KeymasterHi,
Can you please update to 4.26.3, it was just released a couple of hours ago. It will resolve this notice.
Ernest Marcinko
KeymasterGreat!
Ernest Marcinko
KeymasterOkay!
So on the first screenshot you have the “dedo_download” post type selected. That is probably causing the issue. If the files are already in the media library, then you can deselect that option. It’s probably only a post type for storing the download metadata and it’s non-displayable.
If it’s needed, then I guess the only way to fix that is via a custom code, as it seems like the incorrect url is returned by wordpress.
Try adding this code via the Code Snippets plugin or to the functions.php file in your theme/child theme directory – make sure to have a full server back-up first for safety. For more details you can check the safe coding guidelines.
add_filter( 'asp_results', function ( $results ) { foreach ( $results as &$r ) { if ( isset($r->post_type) && $r->post_type === 'dedo_download' ) { $r->link = get_site_url() . '/' . "?ddownload=$r->id"; } } return $results; }, 10, 1 );To restrict the results to specific categories please check this documentation.
Ernest Marcinko
KeymasterHi Stefan,
I guess that is the media attachment page URL. Make sure the media page URL is set to the file directly: https://i.imgur.com/G6bGVsx.png
I suspect that plugin is hooking into the attachment URL filter, so that should return the URL set by that plugin.Ernest Marcinko
KeymasterYou cannot access this content.
Ernest Marcinko
KeymasterYou cannot access this content.
Ernest Marcinko
KeymasterYou cannot access this content.
Ernest Marcinko
KeymasterOh okay, great 🙂
I will keep this topic open in case.
Ernest Marcinko
KeymasterYou cannot access this content.
Ernest Marcinko
KeymasterYou cannot access this content.
-
AuthorPosts