How to embed code into Wordpress

by 3 replies
4
Hello

Can anyone help?

I`m trying to embed code into wordpress posts/pages

Specifically the search tools from Booking.com

Is there a plugin or something to help faciliate this?

Thanks
#website design #code #embed #wordpress
  • There are plugins, that can help, depending on the type of code that you want to execute, PHP, ect, dont know about booking.com but what is happening when you try to setup your code in your post.
  • Hi Tim

    Booking.com supply a search tool, its HTML,CSS and Javascript

    When I embed the massive lump of code into a WP page various bits no longer work.

    For example, where there should be a search box pre-populated with the towns name I see this instead:-

    class="text" type="text" id="destination" name="ss" value="monterey" title="City, Region, Country, Landmark, Hotel, District" />

    There are a couple of dropdowns for dates, once embedded these no longer contain any date, just an empty cell

    Hope this makes sense. I`m pretty new to Wordpress.
  • Ahhh! I`ve had a bit of a breakthrough.

    I was trying a few plugins but could not get them working, they all referred to "Custom Fields" which I could not find, turns out with WP3 that custom fields are hidden by default

    Now I've enabled custom fields, I`ve managed to get it working.

    For the record, I`m using a plugin called "Artiss Code Embed" and its working well!

    \o/

Next Topics on Trending Feed