How to embed code into Wordpress

3 replies
  • WEB DESIGN
  • |
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
#code #embed #wordpress
  • Profile picture of the author Tim Franklin
    Originally Posted by Instantfruit View Post

    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
    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.
    Signature
    Bitcoin | Crypto | AI software tools and development|
    {{ DiscussionBoard.errors[4299649].message }}
  • Profile picture of the author Instantfruit
    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.
    {{ DiscussionBoard.errors[4299695].message }}
  • Profile picture of the author Instantfruit
    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/
    {{ DiscussionBoard.errors[4300129].message }}

Trending Topics