我想在侧边栏中的下面的代码中显示当前类别名称,但我不能。谁能帮我?
谢谢你。
<?php
$weather_city = the_category_name();
if ($weather_city)
echo do_shortcode('[forecast location="' . $weather_city . ', Greece" caption="" measurement="C" todaylabel="Σήμερα" datelabel="%%weekday%%" highlow="%%high%%° / %%low%%°" numdays="4" iconset="Incredible" class="css_table_class"]'); ?>