Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter Stephane

    (@passimal)

    Hello
    I found it but I don’t know how to customise it by this fuinction ?
    <?php the_widget ('Archives_Calendar'); ?>

    Thanks a lot .

    Plugin Author alek

    (@alekart)

    Hello
    use it like that:

    $args = array(
    	'title' => __('Archives'), // Title of the widget
    	'next_text' => '?', // next button text
    	'prev_text' => '?', // previous button text
    	'post_count' => 1, // show post count for months
    	'month_view' => 0, // 1 => show months instead of years
    	'month_select' => 'default', // prev, current, next
    	'different_theme' => 0, // set a different theme for this widget regardless on plugins settings
    	'theme' => null, // theme to set if different_theme = 1 // "calendrier"/"pastel"/"classiclight"/"classicdark"/"twentytwelve"/"twentyfourteen"/"twentythirteen" or "arw-theme1"/"arw-theme2" for custom themes
    	'post_type' => array(), // array("post", "message", "forum") ...
    	'categories' => null // array(2, 3, 4, 5); list cathegories id number you want to show on calendar
    );
    
    the_widget( 'Archives_Calendar', $args);

    If you don’t set all of the parameters you can remove them, default parameters will be set instead. (‘title’ is required):

    $args = array(
    	'title' => __('Archives'),
    	'post_count' => 0
    );
    
    the_widget( 'Archives_Calendar', $args);
    Thread Starter Stephane

    (@passimal)

    Hello,

    It ok now but I cannot change the month with < and > .

    Best regards

    Plugin Author alek

    (@alekart)

    You might have issues with the jQuery plugin.
    In the settings of the plugin check if the “Include jQuery library” checkbox is selected.
    On some WordPress installation (i cant figure out why) the jQuery plugin of the Archives Calendar Widget is loaded before the jQuery library so the navigation is broken.

    Thread Starter Stephane

    (@passimal)

    It Ok Now it was the jquery who ‘s trhe problem

    thanks a lot ….

    Very good plugin widget !

    Juste a last question is it possible to see the sticky post on calendar to ?

    Best regards

    @steflp

    Plugin Author alek

    (@alekart)

    If you filter the calendar by a category and that your sticky post is not in that category it will not be shown.

    I’ve never used sticky posts so I didn’t even know it exists.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘using Calendar widget with the_widgtet function’ is closed to new replies.