Viewing 4 replies - 1 through 4 (of 4 total)
  • if you could share the code of this file I will look into this issue

    Thread Starter cseufert

    (@cseufert)

    I think it is somewhere in this code ?

    function gridfull_shortcode($atts, $content){
    extract(shortcode_atts(array(
    ‘title’ => null
    ), $atts));
    ob_start();
    ?>
    <div class=”gridy gridfull”><?php echo $atts[title]; ?>
    <?php echo $content ?>
    </div>
    <?php
    return ob_get_clean();
    }
    add_shortcode(“gridfull”,gridfull_shortcode);
    function gridhalf_shortcode($atts, $content){
    extract(shortcode_atts(array(
    ‘title’ => null
    ), $atts));
    ob_start();
    ?>
    <div class=”gridy gridhalf”><?php echo $atts[title]; ?>
    <?php echo $content ?>
    </div>
    <?php
    return ob_get_clean();
    }
    add_shortcode(“gridhalf”,gridhalf_shortcode);
    function gridthird_shortcode($atts, $content){
    extract(shortcode_atts(array(
    ‘title’ => null
    ), $atts));
    ob_start();
    ?>
    <div class=”gridy gridthird”><?php echo $atts[title]; ?>
    <?php echo $content ?>
    </div>
    <?php
    return ob_get_clean();
    }
    add_shortcode(“gridthird”,gridthird_shortcode);
    function gridfourth_shortcode($atts, $content){
    extract(shortcode_atts(array(
    ‘title’ => null
    ), $atts));
    ob_start();
    ?>
    <div class=”gridy gridfourth”><?php echo $atts[title]; ?>
    <?php echo $content ?>
    </div>
    <?php
    return ob_get_clean();
    }
    add_shortcode(“gridfourth”,gridfourth_shortcode);
    ?>

    you should comment it <?php echo $atts[title]; ?>

    like <?php //echo $atts[title]; ?>

    Thread Starter cseufert

    (@cseufert)

    That fixed it – thank you so much

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Shortcode.php error’ is closed to new replies.