20 reputation
5
bio website bezbeli.ba
location Sarajevo, Bosnia and Herzegovina
age 34
visits member for 2 years, 1 month
seen Jun 27 '12 at 10:03
stats profile views 12

Apr
17
comment Sort posts by number of matched terms
Tried that already, without get_template_part( 'loop', 'taxonomy' ); and with php rewind_posts(); with no luck :-(
Apr
17
comment Sort posts by number of matched terms
Ok, here it is pastie.org/1802144
Apr
16
comment Sort posts by number of matched terms
On the loop, if I omit the sorting function it still doesn't work. Thanx for all the effort, by the way :-).
Apr
16
comment Sort posts by number of matched terms
Yes that was it, now I get the selected terms when I echo $searched_tags but then it breaks on while loop.
Apr
16
comment Sort posts by number of matched terms
Sorry, I should add code from the start.
Apr
16
comment Sort posts by number of matched terms
Thanx for reply, there was an error in //check and count matchs foreach ($current_post_terms as $t){ if (in_array($t,$searched_tags){ $matchs = $matchs + 1; } } $result['m'] = $matchs; I corrected it but it still doesn't work, I should put this code inside the taxonomy-my_tax.php right?
Apr
16
comment Sort posts by number of matched terms
Yes, and everything works fine, I get posts that match ALL the terms, now I need to get all posts that match ANY of the terms and to order them by number of matched terms
Apr
16
comment Sort posts by number of matched terms
Search output this to (Location:/?my_tax=cat1+cat2+cat3+cat4) After that it is displayed by taxonomy-my_tax.php. I need a way to show all posts from cat1, cat2, cat3, cat4 and order them depending on how much categories matched.