[resolved] Insert code? (3 posts)

  1. nmvdvjr
    Posted 2 years ago #

    Hi guys custom posts/fields are the next step in my WordPress adventure and I'm very excited to begin! Newbie so excuse me for limited lingo :-) I've read a lot about your plugin but couldn't find wether I can put code/php as input and have the function as output (as opposed to the literal code text): for example a field to paste Google adsense code in and have the advert on the website. Thanks in advance! Nick


  2. AmirHelzer
    Plugin Author

    Posted 2 years ago #

    Types has a pretty comprehensive API for displaying different kinds of custom fields. It's documented here:

    However, Google Adsense should probably be added as PHP, directly to the theme. It's loaded with Javascript and will easily break with visual editing.

    Does this make sense?

  3. nmvdvjr
    Posted 2 years ago #

    Hi Amir, thanks for your reply: it does make sense!! Saved me a lot of time thank you

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Types
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic