• Artur Bobinski

    (@kentonwebdesign)


    Building a custom template for one of clients and I can’t remember how I structured my shortcodes so that it doesn’t clean a link within the shortcode. For example;

    return '<h2 class="icon-title" style="background:url("' . esc_attr($iconlink) . '") no-repeat center;">' . esc_attr($title) . '</h2>';

    but it strips it in html, showing it as;

    http:="" amazonaws.com="" wp-content="" uploads="" 2016="" 03="" image.gif"

    It’s driving me crazy trying to remember. I’ve tried the esc_url .. still nothing.

    Thanks in advance.

  • The topic ‘Shortcode Frustration’ is closed to new replies.