baturica
Forum Replies Created
Viewing 5 replies - 1 through 5 (of 5 total)
-
Forum: Fixing WordPress
In reply to: category query on the tag.phpI found the solution myself
My English is not very good. Maybe the solution can understand what I am asking 🙂posts tagged with the label : <?php single_tag_title(); ?> <h2> category name 1</h2> <?php $current_tag = single_tag_title("", false); query_posts(array( 'cat'=>'26', 'showposts'=>'3', 'tag_slug__and'=>array($current_tag), ) ); ?><?php while (have_posts()) : the_post(); ?> while.... <?php endwhile; ?> <h2> category name 2</h2> <?php $current_tag = single_tag_title("", false); query_posts(array( 'cat'=>'27', 'showposts'=>'3', 'tag_slug__and'=>array($current_tag), ) ); ?><?php while (have_posts()) : the_post(); ?> while... <?php endwhile; ?>Forum: Fixing WordPress
In reply to: A-Z index list of tagsWas like a stylish 🙂
<ul> <?php $tags = get_tags( array('name__like' => "ç", 'order' => 'ASC') ); foreach ( (array) $tags as $tag ) { echo '<li><a href="' . get_tag_link( $tag->term_id ) . '" title="' . sprintf( __( "View all posts in %s" ), $tag->name ) . '" ' . '>' . $tag->name.'</a></li>'; } ?> </ul>Forum: Fixing WordPress
In reply to: A-Z index list of tagsSoryy! utf8 is no problem. Turkish character works very well
Forum: Fixing WordPress
In reply to: A-Z index list of tagsWas very simple. But another problem appeared. Turkish characters do not work. For example, ç, ı, ş
<?php $tags = get_tags( array('name__like' => "ç", 'order' => 'ASC') ); foreach ( (array) $tags as $tag ) { echo '<li><a href="' . get_tag_link ($tag->term_id) . '" rel="tag">' . $tag->name . ' </a></li>'; } ?>Forum: Fixing WordPress
In reply to: A-Z index list of tagsa great solution. Thank you very much. How do I make a separate page for each letter?
Viewing 5 replies - 1 through 5 (of 5 total)