• ob_start();
    include (locate_template(‘includes/box-group-share.php’, true ));
    $box_group = ob_get_clean();
    echo $box_group;

    Hi, i would like to know why doesn′t work this funcion.

    It is obsolete?

    Other way for this function?

    Thank you

Viewing 1 replies (of 1 total)
  • What you actually want to do ?

    locate_template already do same type of technique like include

    use like this

    locate_template('includes/box-group-share.php', true );

    —————

    it will search for your stylesheet directory

    your include folder must be at current theme foder where stylesheet available.

Viewing 1 replies (of 1 total)
  • The topic ‘Why doesn′t work Locale Template?’ is closed to new replies.