nightstalker101
Forum Replies Created
-
Forum: Plugins
In reply to: [WP-Cumulus] [Plugin: WP-Cumulus] The cloud size does not changeForum: Fixing WordPress
In reply to: category__and not fully workingYes, I do.
Forum: Fixing WordPress
In reply to: Cyryllic letters in Permalink…I found the solution:
I installed the plugin and updated all the links in the posts again. Now it works!Forum: Plugins
In reply to: [Plugin: NextGEN Gallery] NG Box only visible for Adminhmmm..where do I find this tab?
Forum: Fixing WordPress
In reply to: Looking for Desktop Publishing ToolNo one here, that has experience with such a tool?
Forum: Fixing WordPress
In reply to: Show Related Categories in Cat. viewMany Many Thanks for your help. Now all is working.
Forum: Fixing WordPress
In reply to: Show Related Categories in Cat. viewHi,
no, I meant the loop above, which cycles through all the posts, to get their cats.
That one where the array with cat id’s and tag id’s is written.
Would it be possible, to get the id’s of the posts, that are looped there and write the into the array with the terms?Forum: Fixing WordPress
In reply to: Show Related Categories in Cat. viewokay. thanks. And how can I write the post Id’s in that array with cat id’s or an additional array?
Forum: Fixing WordPress
In reply to: Show Related Categories in Cat. viewand this line:
$args = ‘include=’.implode(‘,’, $term_ids);
produces an erro in some cases, though the cats aand tags are listed below.
I am getting this error:
implode() [function.implode]: Invalid arguments passed in….Forum: Fixing WordPress
In reply to: Show Related Categories in Cat. viewwould it be possible, to write ht epost id’s in that array, too?
Forum: Fixing WordPress
In reply to: Show Related Categories in Cat. viewI also found the error for the count eventually:
It counts only the post per page and not per category.
So I extended the query:
query_posts(‘posts_per_page=5000’);Now the results are correct, but only in monthly archives. :(.
Forum: Fixing WordPress
In reply to: Show Related Categories in Cat. viewyep. I found the error. What about the count in your script?
Forum: Fixing WordPress
In reply to: Show Related Categories in Cat. viewAnd one more Question:
To separate the request targets, I am using this function:$output = '<a rel="nofollow ' . esc_attr(get_term_link($term, $taxonomy)) . '" href="'.get_bloginfo('url').'/detailsuche?in_cat1='.$current_cat.'&in_cat2='.get_cat_id(''.$term->name.'').'" title="Artikel aus den Kategorien '.$cat_title.' und '.$term->name.' ">' . $term->name.'</a>(' . $term->count . ')';} elseif (is_tag) { $output = '<a rel="nofollow ' . esc_attr(get_term_link($term, $taxonomy)) . '" href="'.get_bloginfo('url').'/detailsuche?cat_id='.get_cat_id(''.$term->name.'').'&tag_name='.$current_tag.'&cat_name='.$cat_title.'" title="Alle Posts in der Kategorie '.$term->name.' mit dem Thema '.$cat_title.'">' . $term->name.'</a>(' . $term->count . ')';} elseif (is_month()){ $output = '<a rel="nofollow" href="' . esc_attr(get_term_link($term, $taxonomy)) . '" title="' . sprintf( __( "Alle Posts in %s" ), $term->name ) . '" ' . '>' . $term->name.'</a>(' . $term->count . ')';}
But it seems, that it works only for tag and cat pages. Why not in archive pages? I tried both: is_month() and is archive().
But in but cases I get the output for is_category(). Why that?
Forum: Fixing WordPress
In reply to: Show Related Categories in Cat. viewHi,
I did it with count and the compared it with the max numbers of items, in that way, I am also able, to break the foreach.
One Question:
Which count is there shown behind the items?
Is it a general count for them or does it count the matches directly?In some cases it is wrong, in some others not.
I am forwarding the links to a special page, with custom queries, so i can see directly if the count is wrong or not.Forum: Fixing WordPress
In reply to: Show Related Categories in Cat. viewwow and thanks again. You saved the last one hour of my weekend ;).
One (hopefully) final question:echo ‘name ) . ‘” ‘ . ‘>’ . $term->name.’(‘ . $term->count . ‘) | ‘;
How can I separate between links and tags here?
Means: One echo only for the Links and one only for the tags? Aaaand ?? :
You can see, that I use the dash as separator. How can I remove it from the last item?