Aldo
Forum Replies Created
-
Thanks! Perfect. Option 1. helped.
We use bedrock (https://roots.io/bedrock/) who also uses Dotenv.
Probably they conflict with each other.We use the latest version (6.2.0).
WP is 5.8.1 and PHP 7.3.33No, also did not get any feedback contacting Sucuri Support directly.
Forum: Plugins
In reply to: [WPlyr Media Block] Vimeo Embed questionWith the Vimeo Test-Video it works (https://vimeo.com/76979871).
What could be the issue?Forum: Plugins
In reply to: [WPlyr Media Block] Vimeo Embed questionThanks for the feedback!
There is no parameter, bus till the Button appears.
Any other idea?Thanks
Forum: Plugins
In reply to: [Custom Post Type Permalinks] WPML compatibilityHas this issue been solved?
I checked the link to GIT, but still have the same issue.
Pages to translated slugs return 404.Forum: Plugins
In reply to: [Custom Query Blocks] Term Grid form CPTForum: Plugins
In reply to: [Custom Query Blocks] Term Grid form CPTThanks for the quick feedback!
No, as I have a CPT with it’s own taxonomy.
So it would be great to select the CPT where the taxonomy terms belong to.Cheers,
AldoForum: Plugins
In reply to: [Yoast SEO] Refused to execute scriptHi Jeroem
Yes I can confirm Yoast SEO was the only active plugin using default theme.
Requirements are met.Forum: Plugins
In reply to: [Yoast SEO] Refused to execute scriptHi Jeroen
Thank for getting back.
We are experiencing this on the edit screen only (posts and pages).
We also contacted the hoster and there is no such rule blocking this mime type and we also disabled any caching plugins.
And we also run the conflict check and got the same problem.Thanks
AldoHi Stephan
The problem is, when inserting a file in a post, the WP modal to browser media only shows thumbnails. There is no way to find an image. Maybe you could add default icon as WP does, then the filename becomes visible.
Thanks!
AldoForum: Plugins
In reply to: [Protect WordPress Uploads] Use own function to define if file protectedHi Stephan
Ok, I managed to grab the post id. Maybe there is a nicer way to do that, but it does the job.
In pwf_hooks.php
After line 157:global $post; $src_post_id = $post->ID; return $is_private == true ? get_bloginfo( 'url' ) . '/download/file/'.$file['ID'].'/'.$src_post_id.'/' : $file['url'];
After line 471 add:
$query_vars[] = 'pwpf_postid';
Change line 479 (before the change above) to:
add_rewrite_rule('download/file/([^/]+)/([^/]+)/?$','index.php?pwpf_file=$matches[1]&pwpf_postid=$matches[2]','top');
And add:
add_rewrite_tag('%pwpf_postid%','[^&]+');
Now in PWPF_handle_private_download() you can get the var: get_query_var(‘pwpf_postid’)
Best,
AldoForum: Plugins
In reply to: [Protect WordPress Uploads] Use own function to define if file protectedThanks!
Wouldn’t be possible to pass the post id in the query as well?Forum: Plugins
In reply to: [Protect WordPress Uploads] Use own function to define if file protectedHi Stephan
I understand ??
It‘s just one Installation.If I could just get the page ID from the page the the Download is called.
Maybe pass it as additional parameter in the rewrite?
Or can I grab it via get_post_meta mentioned in the beginning to get the post Id the attachment belongs to?
The rest I can figure out.Best, Aldo
Forum: Plugins
In reply to: [Protect WordPress Uploads] Use own function to define if file protectedHi Stepahn
I looked a bit deeper.
Is there a way to retrieve the current post ID in this hook: PWPF_handle_private_downloadThanks
Aldo