Use Search inside HTML

This topic contains 4 replies, has 2 voices, and was last updated by  Guust 8 years, 7 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #53850

    Martin Omaga
    Buyer
    Post count: 121

    Hi.

    How can we use a plugin throw HTML?

    For example, I want to use the gd-search inside a div. What is the snippet/code that I should use in html?

    Thanks,

    Martino.

    #53883

    Guust
    Moderator
    Post count: 29970

    Use the shortcode [gd_advanced_search]
    https://wpgeodirectory.com/docs/core-shortcodes/#search

    #53891

    Martin Omaga
    Buyer
    Post count: 121

    Hm, it doesnt recognize. Im using it inside a widget text block.

    #53895

    Martin Omaga
    Buyer
    Post count: 121

    Ok, I just found out why.

    It seems that WordPress by default doesnt allow shortcodes inside widgets.

    But pasting this line into functions.php:

    // Enable shortcodes in widgets
    add_filter(‘widget_text’, ‘do_shortcode’);

    It works now 😉

    #53903

    Guust
    Moderator
    Post count: 29970

    Well done 🙂

Viewing 5 posts - 1 through 5 (of 5 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket