Hi
thanks for your reply. I think I found the problem even though I don't understand it yet.
I have a php function which creates my custom link in the dashboard which is
<?php
function clink() {
$post = get_post();
$link = "https://my-link.at/form-submission/?rwmb_frontend_field_post_id=" . $post->ID;
return $link;
}
?>
I am using the "advanced scripts" plugin for php codes since I am using Oxygen and the functions.php is not available. For my understanding the function shouldn't do anything without calling it, right? But the weird thing is, when I set conditions where this .php file should be executed I can use the mbform to update my post.
https://share.getcloudapp.com/E0uYrpXD
I've set it to only work on my "dashboard" page.
My Dashboard page is a custom made page, so I didn't use the "Frontend Dashboard" which is provided by metabox:
https://share.getcloudapp.com/P8u5yowz
The button below gets the custom link value as seen in the first share (from the script). That's also the place where I call the function.
After clicking on the button i will be redirected to my page ../form-submission/?rwmb_frontend_field_post_id=46 where ID is dynamically added.
https://share.getcloudapp.com/DOuD9Z7A
So now, since I've set that condition for the script everything works fine, but maybe you can help me understand why I need to set a condition for that script as it shouldn't be executed anyway? Or am I missing something? (not a coder at all :-D)
Thanks again for your help