Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Igor Yavych

    (@flyerua)

    Sorry, I’m not sure what you’re talking about. Please explain in detail

    Thread Starter ILuciferI

    (@iluciferi)

    Plugin have widget, you can insert it in sidebar panel thru WP menu. There you can set what and how to display.
    I want manually set and insert widget direct in my custom php files.

    Thread Starter ILuciferI

    (@iluciferi)

    Something like this

    $instance = array (
    'post_type' => 'some_post_type', //What to include (Posts, pages,...)
    'list_style' => 'disc', //List style (disc, circle...)
    'number' => '5', //Count of items
    );
    
    $args = array (
    'before_widget'  => '<div class="widget_class">',
    'after_widget' => '</div>',
    'before_title' => '<h2 class="widgettitle">',
    'before_title'  => '</h2>'
    );
    
    the_widget( 'SPR_Top_Widget', $instance, $args );

    https://codex.wordpress.org/Function_Reference/the_widget

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Top widget’ is closed to new replies.