• Resolved viher

    (@viher)


    Hi,

    Is there a way to print/show week numbers in monthly grid view? For example box before the first day of week.

    I thought it would be simple, but couldn’t find any hits with searches all over the internet.

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Joe Dolson

    (@joedolson)

    There’s a filter you can use to enable week numbers. Attaching a function to the ‘mc_show_week_number’ filter that returns true will enable those.

    Hi!
    I really wonder why this is not the default option
    BR
    Anders

    • This reply was modified 5 years, 11 months ago by andhi1.
    Thread Starter viher

    (@viher)

    Thank you Joe, fast response = going Pro.

    Thread Starter viher

    (@viher)

    Seems like I don’t have my brains with me today (And my skills in coding pretty much limit to editing existing code, writing new with right syntax is pretty much as consuming as learning to read.. So I have no idea where to implement the solution I was given.

    I’ll be buying the user guide now, but a bit more detailed help would be much appreciated.

    Thread Starter viher

    (@viher)

    Ok, manual page 52 and onward explains a lot, but I’m still unable to get week numbers to show.

    This is probably totally wrong:

    add_filter( ‘mc_show_week_number’ );
    function show_week_number {
    return $true;
    }

    • This reply was modified 5 years, 11 months ago by viher.
    Plugin Author Joe Dolson

    (@joedolson)

    Try:

    add_filter( 'mc_show_week_number', 'show_week_number', 10, 2 );
    function show_week_number( $enabled, $args ) {
         return true;
    }
Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Show week number in montly grid view’ is closed to new replies.