![]() |
|
||||||
|
|
Thread Tools | Display Modes |
|
#3
|
|||
|
|||
|
Great, thanks for the quick supply, which is already working although static.
Now I need help to get it dynamic. How can I make it happen, that the parameter/tag is automatically changed depending on the tag selected? Thanks again for the great support. Thanks & Bests Thorsten Thanks, found the solution myself: if( is_category() || is_single() ) { $tags = get_the_tag(); $tag = $tags[0]; $tag_ID = $tag->tag_ID; } ?> <?php $recent = new WP_Query("showposts=10&tag=$tag"); while($recent->have_posts()) : $recent->the_post();?> Can bee seen here: www.tfaltings.de/fotos/tag/gebaude/ Bests Thorsten |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Ordering thumbnails by category | Neill_Watson | General Discussion | 59 | 02-01-2010 09:38 AM |
| ordering categories | ardain | General Discussion | 2 | 10-15-2009 07:52 PM |
| Ordering Links | mhc | General Discussion | 4 | 05-17-2009 03:36 PM |
| Ordering Categories in Top Nav | bobfamous | General Discussion | 1 | 12-15-2008 06:57 PM |
© Copyright 2012 Copyblogger Media LLC · StudioPress™ is a trademark of Copyblogger Media LLC
Privacy Policy | Refund Policy | Terms of Service | Affiliate Program | Contact Us