WordPress.org

Support

Support » Plugins and Hacks » [Resolved] Different Cities for different posts

[Resolved] Different Cities for different posts

  • Hi,
    I m trying to call the time for special cities in several posts by using that code “<?php $timezonecalculator->output($params);?>” inside my sidebar “php-code-widget”. It is working fine, but I don’t want to show the reader all the 10 cities I selected for the different timezones in australia.
    e.g. for perth I want to show only the timezone-data for perth
    for sydney -> only timezone data for sydney and so on…

    What do I have to change in order to just call a specific timezone and not for all cities I have put in the drag and drop layout section ?

    Is there a way to adjust this code <?php $timezonecalculator->output($params);?> in order to get only the timezone for e.g. sydney
    maybe s.th. like <?php $timezonecalculator->output($params(query … sydney …);?> ?
    many thanks
    wombii

    http://wordpress.org/extend/plugins/timezonecalculator/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Bernhard Riedl

    @neoxx

    hi wombii,

    sure thing, you need to pass the timezone of choice as parameter. – try to input the following code in the widget:

    global $timezonecalculator;
    
    $timezonecalculator->output(array('timezones' => array('Australia/Perth')));

    there’s a list of all available parameters in the other notes section.

    greetz,
    berny

    Hi Berny,

    Many thanks !!!
    its working fine.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Resolved] Different Cities for different posts’ is closed to new replies.