none of the two connects the new child event post to the parent pub post (relationship is empty). Is it because the calling view is a list and not a single post ?
What can I do to pass the parent post ID to the child from a list ? should I use a URL parameter or is there a better way ?
thanks
Regards
Nicola
I need to check whats going wrong and how you setup the things.
Can you please share problem URL as well as admin access details.
*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.
I have set the next reply to private which means only you and I have access to it.
I login as admin and when I try to access the problem URL page you shared:
- enlace oculto
It shows me login form. Do I need to login as frontend user? If yes, could you please share frontend user access details.
*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.
I have set the next reply to private which means only you and I have access to it.
Now, we are passing the current post ID as URL param ?parent_pub_id=[wpv-post-id]" and this will automatically populate the parent field and when you submit the new event it will automatically associated with the related pub.
I've created the folloing test event and I can confirm the event is linked to related parent (ID) passed as URL param.
=> enlace oculto
Could you please confirm it works at your end as well.
Hi
it works this way, thanks. Just wondering what happens if some stupid decides to delete the pub ID or - even worst - change it to another one that actually exists !!! (the event would be linked to another pub !!). How can I control this ?
Are you working on the site, as I get site not reachable message? if no, I will require FTP access details as it seems the custom shortcode I've added could be the culprit.
Could you please share FTP access details.
I have set the next reply to private which means only you and I have access to it.
There must be issue with your server as I'm getting "The connection has timed out" on admin section as well. Could you please check and get back to me.
HI,
thanks for your indications, but this solution goes beyond my abilities. To avoid this I tried to change the user experience: let the user select the pub first and then the single pub page opens: here I placed the CREATE EVENT button. I then changed the [encode_param] back to value=[wpv-post-id] (I also tried default=[wpv-post-id]). According to this doc https://toolset.com/documentation/legacy-features/views-plugin/selecting-parent-posts-using-forms-create-child-items/
if the parent post is preselected the form "knows" which is the parent post, but it doesn't work either ! the doc doesn't explain the button link syntax, so I just call the page....any clue ? thanks
You will have to add the shortcode to display child form link and you can do that by adding the "Fields and Text" block and then from the forms icon you should click on the button "Create child post link".