StudioPress Community Forums
  StudioPress Community Forums > Forums > General Discussion
For help and support, access to your downloads, or to manage your account please log into My StudioPress.

These forums have been set to read-only so you can browse the existing topics for any questions you may have.

For general discussion on WordPress, CSS and design (NOT for support) visit the new Community Forums.
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #3  
Old 09-02-2009, 09:57 AM
TF64 TF64 is offline
Registered User
Genesis Member
 
Join Date: Jun 2009
Location: Hamburg, Germany
Posts: 57
Default Re: Ordering thumbnails by tag

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
__________________
TF28
--------------------------
http://www.tfaltings.de
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

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


All times are GMT -5. The time now is 08:44 AM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.