Pods shortcodes

Posted in: Newspaper
Post count: 162

We are using pods to extend our post types.

When I add a pod code e.g. [pods field=”pdf_file”] in my post it works fine.

When I include this in a a href tag in my post (e.g. Download PDF</p>) it works fine again.

When it is included in the template file plain e.g. [pods field=”pdf_file”] it works.

But when it is included in the cloud template file within an a href tag it doesn’t work.

Any ideas of how to go about it?

Post count: 18283

Hello !

Please note that your request is custom work one and is not covered by the support team.

Thank you for your understanding !

Post count: 162

It “worked” in the cloud template by adding this code directly editing in the template (not using tagDIV composer)

[vc_column_text]
[return_post_id]
<p><h5>Διαβάστε τη δημοσίευση σε αρχείο μοφρής PDF:</h5></p>

<div class="tds-button td-fix-index">Άνοιγμα PDF</div>
[/vc_column_text]

The thing is that in the server it displays the same PDF file as if it has been cached!

So although the id of the post changes, the evaluation to display the file, does not.

https://beta.cmj.gr/2020/03/%ce%b2%ce%b9%ce%bb%ce%b1%cf%83%cf%84%ce%af%ce%bd%ce%b7-%ce%ad%ce%bd%ce%b1-%ce%b9%ce%b4%ce%b1%ce%bd%ce%b9%ce%ba%cf%8c-%ce%b1%ce%bd%cf%84%ce%b9%cf%8a%cf%83%cf%84%ce%b1%ce%bc%ce%b9%ce%bd%ce%b9%ce%ba/

Post count: 162

I will be interested to have it fixed. Get in touch with me so that we can fix it.

Post count: 18283

Hello !

Please try and use this element: https://prnt.sc/rrbwqa

This may work better.

Thank you !

Post count: 162

Thank you guys!

It worked after downloading yesterday’s version! 10.3.2. (10.3.1 wasn’t working).

It will be great if you can make it available to other templates as well – not just single post templates i.e. in the tags template.

Is there a way to make this available to other templates?

Finally, it will be great if one can put shortcodes within tagDIV’s elements properties. i.e. in the URL field of a text form, ad, image field etc.

I will have to reapply the customisations we have done in the theme for the multiple authors and we are ready. Thanking you once more.

Viewing 6 posts - 1 through 6 (of 6 total)
The forum ‘Newspaper’ is closed to new topics and replies.