ACF & Sportspress

28 February, 2019 22:54:30
caimakale
Topics: 2
Messages: 4
I need to create pdf's for athletes. The data is created and stored via ACF and Sportspress. Is it possible to use custom fields from either of these products to merge into a pdf template? The sportspress player pages don't show up as a typical wordpress post or page but I can get the post ID for each player.
1 March, 2019 00:33:45
E2Pdf
Support
Topics: 7
Messages: 3163
Hi,

We just checked your request. ACF is supported if it used inside default WordPress Page/Post as it uses default behavior of meta fields. So values can be outputted inside E2Pdf Template as: [meta key='test'] - where "test" is custom post field name.

Custom Post Types (as Sportspress) is not yet supported but we are working on extending it as we have some other similar requests and it's already in our "Roadmap". In theory if you will be able to output player data inside standard wordpress page/post - it will be possible to output data to PDF.

P.S. You can download and test "E2Pdf" absolutely free as we do not limit any functionality except number of "Free" activated Templates and pages inside it.

We remain at your service.
We would really appreciate your feedback at WordPress.org!
1 March, 2019 14:14:26
caimakale
Topics: 2
Messages: 4
Great, thank you!

I may have found a workaround until custom post types are supported. One more question though, are keys that are part of serialized data supported? I haven't gotten around testing them yet, just curious if there's anything I should know.

I am going to continue testing but this looks very promising. I'll likely be upgrading a couple of levels so I can build out the various forms I need.
2 March, 2019 03:26:42
E2Pdf
Support
Topics: 7
Messages: 3163
Unfortunately not yet as "E2Pdf" uses standard function get_post_meta() to render meta keys. We will check the possibility to extend it to work with serialized data.

We remain at your service.
We would really appreciate your feedback at WordPress.org!
10 April, 2019 00:29:33
E2Pdf
Support
Topics: 7
Messages: 3163
Hi,

We just released an update (1.06.02) with support of custom post types. It's experimental feature so let us know please if you will face any problems with using it or have any improvement suggestions. Thank you.

We remain at your service.
We would really appreciate your feedback at WordPress.org!
10 April, 2019 12:04:30
caimakale
Topics: 2
Messages: 4
It works amazingly well.

Only issue I've encountered so far, is adding a picture to the pdf. The pictures are dynamic based on the sportspress pages, I'm not really sure if it's even possible.

For example, the "Player" page, is a page that gets created dynamically for each player in the database. Their profile picture is one of the items that would be nice to include on the pdf. I just can't get them to display on the pdf, instead, it shows the database number.

One work around, would be to buy enough templates so that every "player" (page) has it's own pdf (template) with their picture pre-loaded on it. Beause the data on the pdf changes frequently, this solution isn't as bad as it sounds. All that data entry for each player? Or setup a dozen or so templates one time, and let the data generate on its own? I'll opt for solution 2 until/unless a solution is developed to allow us to bring the images in.
10 April, 2019 23:39:55
E2Pdf
Support
Topics: 7
Messages: 3163
Hi,

Thank you for detailed information. Getting post "thumbnail" is planned to be added in next update. We will update this thread when feature will be released.

P.S. As a temporary solution with images (to not create a lot of templates), you can try create custom field with image path (https://example.com/..../.../image.png) and use [meta key="KEY"] inside E2Pdf Template.

We remain at your service.
We would really appreciate your feedback at WordPress.org!
11 April, 2019 06:27:48
E2Pdf
Support
Topics: 7
Messages: 3163
Hi,

We just released update (1.07.00) where [post_thumbnail] shortcode was added. You can use it as value for image or any other field.

Size can be defined by "size" attribute.

[post_thumbnail size="full"]

Example screenshot attached.

We remain at your service.
We would really appreciate your feedback at WordPress.org!