Where communities thrive

  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
    Raunak Hajela
    What's the issue?
    Edison Calle
    wp_kses_post is used to sanitize content and while doing this it doesn't output <iframe>
    Raunak Hajela
    Yaa but issue?

    on a wp template you can do this:

    $allowed_tags = wp_kses_allowed_html( 'post' );
    var_dump( $allowed_tags );

    and it will output the list of allowed html tags; iframe is not inlcuded there so i need to add it

    following the 1st block of code on that link, and editing it should add iframes.
    This is what I'm doing:
    function vipx_allow_contenteditable_on_divs() {
        global $allowedposttags;
        $tags = array( 'iframe', 'embed', 'object' );
        $new_attributes = array( 'src' => array(), 'height' => array() );
        foreach ( $tags as $tag ) {
            if ( isset( $allowedposttags[ $tag ] ) && is_array( $allowedposttags[ $tag ] ) ) {
                $allowedposttags[ $tag ] = array_merge( $allowedposttags[ $tag ], $new_attributes );
    add_action( 'init', 'vipx_allow_contenteditable_on_divs' );
    Edison Calle
    i saw that previously. This is an example of how to also make it work
    But i'm trying to follow the documentation from WordPress VIP
    Raunak Hajela
    Oh okay...will try and let you know :)
    Edison Calle
    thank you so much, I really appreciate it.
    just FYI, on their documentation, looks like they forgot to add brackets for the 'if' statement.
    Raunak Hajela
    Haaha yaa
    Caesar Ian Belza
    I hope you can help me. I'm stock at this scenario. I want to populate data from a form html to FormData(), but I can't make it work.
    var fd = new FormData();
    Hello everyone, I really don't understand how do I add jquery in Wordpress? If i am correct for group of gitter.im
    Why does Google Search mess up? No tutorial of jquery in Wordpress and nothing show how do I add in page or template full width page
    Edison Calle

    @sourceskyboxer These days, WordPress automatically loads jQuery for you, so you don't need to add it, as you can see in the code:

    This article can explain a little more if you still have questions.
    Hope this helps

    @edisonake Oh thank you for help !
    Raunak Hajela
    @edisonake WordPress include old jQuery version not new...if you make new theme which support new functions and stuff then you hv to include
    Ben Matthews
    Also remember if you are writing jQuery for WordPress to make sure that you are wrapping your code as described in https://premium.wpmudev.org/blog/daily-tip-adding-custom-js-to-wordpress-remember-jquery-noconflict-wrappers/
    is anyone has this kind of problem ?
    i've been stuck for a week with this typeform login issue
    i cannot proceed to the next chapter
    I have the same issue @aiemanqz
    can't find a way to reach the mentors to solve this problem
    can any give a solution to this problem please ?
    Davide Pugliese
    Jonathan Aldas
    Mahmudul Hasan
    hello! Good Day to every one!
    Atanas Angelov
    Hi guys!
    Can't seem to find any rules on what is OK to post here - are there any specific rules apart from "Be excellent to each other" ? :smile:
    Atanas Angelov
    If anyone is interested, I've recently published my brand new starter theme https://github.com/htmlburger/wpemerge-theme :rocket: (MVC, Routing, Middleware, SASS + PostCSS, ES6, separate bundles for front-end, admin and login pages, blade support & more)
    newbie here.. hope all is well in here guys
    yes i like this until now i am very excite .
    freelancing job now i can work any time this is great .
    i am in first road but i have many power for complete this .
    freelancing job like imagination but now is really .
    two years ago i can't work any thing
    but now i have new hope with freelancing job
    Fahim Uddin
    Can anyone have the answer of my question here ? Any suggestions or solutions would be appreciated !
    Hi there - dumb newbie question, I am looking at a site that uses [php function=xx] to inject some generated text but I just can't figure out how to find the function so I can modify its return what it returns
    hello there i want to in join coders trust how can i start ??
    i am newbie
    Serhii Dudchenko
    Hi all ! Could you recommend some free plugins for multi language support and basic SEO (like title, description, etc) ? Thank you in advance ! :)
    And could somebody tell me how to implement things like - displaying last 2 posts from specific category on the Home page, and the 3 posts from another category , etc.. ?
    Should I create short code for this reason , where create query to get 2 posts from one category, and put it response inside specific HTML . And then use this short code in editor ?
    Abdur Rahim
    i am abdur rahim
    can i join you
    yeah i done HTML & CSS fundamental part 1~!
    Just done building my website
    erm? i found this group is not responsive