Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author rfgoetz

    (@rfgoetz)

    Try this:

    echo preg_replace("/\r\n|\r|\n/",'',do_shortcode('[displayAdzone id="1"]'));

    Bob

    Thread Starter miraculics

    (@miraculics)

    Dear Bob,

    Thanks a lot, but the problem is still persisting.

    Kid regards,
    Danut

    Plugin Author rfgoetz

    (@rfgoetz)

    Try this (replaced double quotes with single quotes):

    echo preg_replace("/\r\n|\r|\n/",'',do_shortcode("[displayAdzone id='1']"));

    or

    echo preg_replace("/\r\n|\r|\n/",'',do_shortcode("[displayAdzone id=\"1\"]"));

    Bob

    Plugin Author rfgoetz

    (@rfgoetz)

    Try v. 5.21.. I re-wrote the jquery such that you no longer need to do the “echo” command.

    This will work on its own:

    echo do_shortcode(‘[displayAdzone id=”1″]’);

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Shortcode insert, WP-topbar not showing’ is closed to new replies.