arndis
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Need post list grouped by tagCode over at themeshaper got broken because I’m not used to BBPress.
Pastebin of working code over at http://wordpress.pastebin.com/zavDfaqZ.
Forum: Fixing WordPress
In reply to: Need post list grouped by tagAnd for anyone looking for the code of the complete solution, it is posted with comments at http://themeshaper.com/forums/topic/create-post-list-grouped-by-tag?replies=2#post-12365.
Forum: Fixing WordPress
In reply to: Need post list grouped by tagOf course, soon I’m going to add another layer of complexity to the whole thing by telling query_posts to only consider posts with a custom field…won’t that be fun?
But first I have a couple years of projects to upload.
Forum: Fixing WordPress
In reply to: Need post list grouped by tagYes, that does work! Thank you!
And no, it’s not terribly well documented. The code above started life looping through categories, and that was fairly simple to get working thanks to the example at http://iamnotagoodartist.com/how-to/wordpress-how-to-sort-category-archive-posts-by-subcategory/. The main problem was linking each heading, for which I have an ugly makeshift because get_category_link won’t work properly.
When I started converting it to do the same thing for tags, I found one roadblock after another — there were no obvious equivalent tag functions for the category functions I had been using. I eventually stumbled on get_terms, which has presented its own problems.
Forum: Fixing WordPress
In reply to: Need post list grouped by tagThank you, and this does get a little farther — the tag headings that have posts now have appropriate posts.
Unfortunately half the tags turn up empty — just the heading, no posts. All those tags do have posts belonging to them already, so this shouldn’t be happening. The only thing I can see in common between them is that all those tags are made of multiple words — they have spaces in them. Earlier I tried changing one multiword tag to be one word, but the query_posts output did not change.
Help please?