I'm using the "BestWebSoft PDF & Print" plugin in order to print a receipt where it should state the post title of the parent post. Unfortunately, PDF & Print doesn't render Toolset-shortcodes - but it renders Toolset-created custom fields ...
I think the best solution would be to pull the parent post title and write it into a custom field of the child post on save.
I don't know, how to accomplish this via API Hook in functions.php ... meaning I don't know how to access one custom field-value and then overwrite a value of another custom field.
Or ... would you suggest another solution to this problem?
add_action('cred_save_data', 'write_parent_post_title',10,2);
function write_parent_post_title($post_id, $form_data)
{
Please login using this link (I don't know how to PM you...): hidden link
Then see the CPT "ArbeitnehmerInnen" and "Jobs", created by Types ... a "Job" is a child of "ArbeitnehmerIn".
When rendering the PDF of a "Job"-post where the shortcode [wpv-post-title id="$arbeitnehmerin"] is placed (see image 1), the output just states the title of the actual "Job"-post (see image 2), so I think PDF & Print doesn't know what to do with "id=$arbeitnehmerin" ... right?
... I didn't actually start creating those custom fields as I don't know wether this would be the right way anyway to solve this. If you can run some tests I'd be glad... the site is a sandbox-installation... so, no worries 🙂
*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) 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 would additionally need your permission to de- and re-activate Plugins and the Theme, and to change configurations on the site. This is also a reason the backup is really important. If you agree to this, please use the form fields I have enabled below to provide temporary access details (wp-admin and FTP).
I have set the next reply to private which means only you and I have access to it.