• Resolved singinggardener

    (@singinggardener)


    Can this plug-in be used for the following issues? I have a gardening website and would like a ‘Tasks for November’ button to appear in the menu during November then in December for it to automatically change to ‘Tasks for December’ etc etc.

Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Author shazdeh

    (@shazdeh)

    Sure, you can use the date function in PHP (docs: https://php.net/manual/en/function.date.php), eg:

    
    date( 'm' ) == 01
    

    That will show the menu item only during January. You can have multiple menu items and configure each one to show only for a specific month.

    Thread Starter singinggardener

    (@singinggardener)

    Thank you. You have brought to an end years of searching to solve this issue. Thank you very much.

    Thread Starter singinggardener

    (@singinggardener)

    Problem solved.

    Thread Starter singinggardener

    (@singinggardener)

    Works fine adding January to July and November and December but when I tried adding August it makes the entire menu disappear. Is there a limit on the amount you can have?

    I only need to add 3 more months.

    Help!

    • This reply was modified 6 years ago by singinggardener. Reason: Problem solved
    • This reply was modified 6 years ago by singinggardener. Reason: Problem
    • This reply was modified 6 years ago by singinggardener. Reason: problem discovered
    Thread Starter singinggardener

    (@singinggardener)

    Works fine adding January to July and November and December but when I tried adding August it makes the entire menu disappear. Is there a limit on the amount you can have?

    I only need to add 3 more months.

    Help!

    Thread Starter singinggardener

    (@singinggardener)

    Plugin Author shazdeh

    (@shazdeh)

    Seeing as you added “Problem solved” edit on your post, might I ask is the issue solved?

    Thread Starter singinggardener

    (@singinggardener)

    It was but when I started adding the buttons a problem then occured.

    New problem is…

    Works fine adding January to July and November and December but when I tried adding August it makes the entire menu disappear. Is there a limit on the amount you can have?

    I only need to add 3 more months.

    Help!

    Plugin Author shazdeh

    (@shazdeh)

    No limit is set by the plugin or WordPress, however it might be your server not configured to handle larger requests. See here for details: https://webcusp.com/solved-how-to-increase-wordpress-menu-items-limit/ and you can contact your web hosting provider to fix this.

    If I wanted a menu item to only be visible between 8 PM and 8 AM, how could I do that?

    Plugin Author shazdeh

    (@shazdeh)

    The date function described above can also be used to get the time, if you use G parameter it can give you the hour in 24-hour format. You can check the PHP documentation page (https://php.net/manual/en/function.date.php) and mix and match the condition to limit the display to specific hours/minutes/seconds or even timezones.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Can this be used for timed menu?’ is closed to new replies.