oliwer helsen

Forum Replies Created

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • in reply to: ACFW with the_widget() #2189
    oliwer helsen
    Participant

    Okey. We are now closer:-).

    i try to use get_fields($acfw); but i dont get any data :-(.

    Can i only use the_field()?

    in reply to: ACFW with the_widget() #2187
    oliwer helsen
    Participant

    Thanks for replay:-)

    Now i get this:

    Notice: Undefined variable: widget_id in /Users/ioliwer/Projekt/Sigma/lff/wp-content/plugins/acf-widgets/includes/ACFW_Widget.php on line 73

    When i ran this:

    add_shortcode( ‘widget’, ‘my_widget_shortcode’ );

    function my_widget_shortcode( $atts ) {

    // Configure defaults and extract the attributes into variables
    extract( shortcode_atts(
    array(
    ‘type’ => ”,
    ‘title’ => ”,
    ‘scheme’ => ‘light’
    ),
    $atts
    ));

    $args = array(
    ‘before_widget’ => ‘<div class=”box widget scheme-‘ . $scheme . ‘ “>’,
    ‘after_widget’ => ‘</div>’,
    ‘before_title’ => ‘<div class=”widget-title”>’,
    ‘after_title’ => ‘</div>’,
    );

    ob_start();
    the_widget(‘ACFW_Widget_2139’);
    $output = ob_get_clean();

    return $output;

    }

    Any idea?

Viewing 2 posts - 1 through 2 (of 2 total)