Hi as the Title sais it I am trying to get hold of a custom taxonomy created with the Pods Plugin in Wordpress.
Within WP I can use this taxonomy to create archive and category views, Link it in the Navigation and search for it within WP, but I can't figure out how to get hold of it and display it on a created pdf.
I looked through the documentation but coundn't find a way to grab that data
Maybe you guys have a tip for me.
Thanks in advance
14 February, 2020 14:05:42
E2Pdf
Support
Topics: 7
Messages: 3574
Hi,
At this moment E2Pdf Templates can be connected to custom post types but not to taxonomies directly. E2Pdf can get taxonomies which are connected to page/post.
We checked Pods plugin and it seems all working like expected but we are not sure that you need to complete same task.
Here is the process how we tested it with E2Pdf:
- It were created custom post type and custom taxonomies (screenshot 1)
- Added new post with custom field and custom taxonomies (screenshot 2)
- Created E2Pdf Template which is connected to this custom post type (screenshot 3)
- Mapped neded fields and added manually shortcode to output taxonomies (screenshot 4)
- We were able to export custom fields data and taxonomies from this post via "E2Pdf" -> "Export".
I did as suggested and it it looks like I'm getting an array as result (screenshot)
17 February, 2020 10:16:39
E2Pdf
Support
Topics: 7
Messages: 3574
Hi,
To output value from serialized array it's need to use "path" attribute with [terms key="x" path="0.name"] shortcode as example.
path - Used to navigate and output value from serialized value array. To unserialize output string and detect correct path you can use services like: https://www.functions-online.com/unserialize.html
We remain at your services.
17 February, 2020 10:24:53
pelZONE
Topics: 2
Messages: 6
That's it!
Thank you so much. The path attribute did the trick.
We use cookies to collect and analyse information on site performance and usage, to provide social media features and to enhance and customise content and advertisements. By clicking "Accept Selected", you consent to use of selected cookies according our to our Cookie Policy.