• Resolved Nikos Kavvadas

    (@nikoslefkas)


    Hi there!

    I am trying to use pods custom field option, to add an iframe embed code and show this on my website front page, but I cannot do this.

    Can you please tell if it is possible to do this and if yes, can please guide me how can I do this?

    Thank you!
    Nikos

Viewing 1 replies (of 1 total)
  • When adding a new Field, there is an option to allow oEmbed and Allow Shortcodes on the HTML, Plain Paragraph and WYSIWYG field types.

    There’s an option to Allow HTML on the Plain Paragraph field type and it’s already a built in option with WYSIWYG field type. An iFrame is html. There’s also an option to sanitize html for Plain Paragraph.

    For Plain Paragraph and WYSIWYG, you would add the youtube url when using Add New and it would only show on the front end for that single CPT. For WYSIWYG on Add New, swap the editor to from Visual to Text. For Block Editor, use the Custom html block.

    With the HTML field type, HTML Options of the add HTML field has a little code box. Add a youtube url there(no <a href needed), and the video will show on the Add New/Edit screen in admin and that same video will show on the front end for all of those CPTs. Could be useful for a Custom Settings Page for client where it’s a one time use strictly in the backend.

    Any html added to HTML field type would do the same as youtube url. It would exist on every Add New screen and new CPT of that type on both the backend and frontend.

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.