Hi Shane,
thanks four your answer.
I already created a relationship between Hefte and Artikel at the beginning of the project (please see attached screenshot).
Where do I have to put your code into?
I don't see a relationship post type in the backend.
The articles are created in the backend with Gutenberg and custom fields from Toolset.
Where does the Heft URL appears in the frontend, when your code is implemented in the backend?
Maybe you could take a look into the backend (i already created an account for you).
Thanks
Thorsten
Shane
Supporter
Sprachen:
Englisch (English )
Zeitzone:
America/Jamaica (GMT-05:00)
Hi Thorsten,
I've added the code to your site and did a quick test and it works to add the parent hefte url to the url field specified. When you click on the connect and existing hefte or create a new one from the child then the child post will get updated with the parent URL. See Screenshot
Here is the test post that I was using.
versteckter Link
For now i've disconnected the existing hefte, what you can do is to go in and connect the artikel to an existing hefte then refresh the page. You will see that the URL gets added.
The hefte url will need to be retrieved from the custom field using [types field='heft-url'][/types]
Please let me know if this helps.
Thanks,
Shane
My issue is resolved now. Thank you!