Hi, i am using this code, but it is not working for tags with diacritcs (Pa?í?…)
Here it is OK
https://www.livit.cz/styl/ikea/
but here not
https://www.livit.cz/styl/pariz/
<?php if ( is_tag()) { ?>
<h1><?php single_tag_title(); ?></h1>
<h2>?lánky</h2>
<?php
$current_tag = single_tag_title(“”, false);
query_posts(array(
‘cat’=>’29,27,11,32,35,9,58,54,39’,
‘showposts’=>’5’,
‘tag_slug__and’=>array($current_tag),
) );
?><?php while (have_posts()) : the_post();?>
<div style=”width:45%;margin-right:3%;float:left;”>
“><?php the_post_thumbnail(“small”); ?>
<h2>“><?php the_title(); ?></h2>
<?php the_author(); ?> <?php the_date(); ?>
<?php
$key_1_value = get_post_meta( get_the_ID(), ‘magazin-druh’, true );
// Check if the custom field has a value.
if ( ! empty( $key_1_value ) ) {
echo ‘<a href=”https://www.livit.cz/magazin?_sfm_magazin-druh=’;
echo $key_1_value;
echo ‘”>’;
echo $key_1_value;
echo ”;
}
?>
<p><?php the_excerpt() ?> </p>
</div>
Thanks