anniebme
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Filtering latest posts by categoryI am currently trying to modify this plugin to do what I need it to.
Forum: Fixing WordPress
In reply to: Filtering latest posts by categoryAh, just kidding. This takes the latest categories made and displays their latest posts. When I tweak it more to show off latest three posts of different categories, I’ll post my code.
Forum: Fixing WordPress
In reply to: Filtering latest posts by categoryHi! I found code that works well enough for what I want!
WordPress forum post that I *FINALLY* found! I knew I couldn’t be the only person who would want to try this.
Here’s my edited version:
<?php $catQuery = $wpdb->get_results(" SELECT * FROM $wpdb->terms AS wterms INNER JOIN $wpdb->term_taxonomy AS wtaxonomy ON ( wterms.term_id = wtaxonomy.term_id ) WHERE wtaxonomy.taxonomy = 'category' AND wtaxonomy.parent = 0 AND wtaxonomy.count > 0 ORDER BY wtaxonomy.term_taxonomy_id DESC LIMIT 3"); $catCounter = 0; foreach ($catQuery as $category) { //latest posts $catCounter++; $catStyle = ''; if (is_int($catCounter / 3)) $catStyle = ' class="catAlt"'; echo $category->name; query_posts('cat='.$category->term_id.'&showposts=1&orderby=date&order=desc'); //this controls the order of the posts with in categories ?> <?php while (have_posts()) : the_post(); ?> <?php the_post_thumbnail();?> <?php the_title(); ?> <?php endwhile; ?> <?php } ?>
Now I’m just adding bits and pieces of html to make it pretty. I hope this helps other curious people and many thanks to to everyone who helped–knowingly or not! ??
Forum: Fixing WordPress
In reply to: Filtering latest posts by categoryThanks, vtxyzzy! I’ll check that link and see what I can do. I appreciate your response–I had this page open for a long time and didn’t see your answer until after I submitted my blurb. I’m special.
Forum: Fixing WordPress
In reply to: Filtering latest posts by categoryBlogsessive.com has a tutorial that looks like its in the right direction that I’m looking. If anyone has a better way to do what I am trying to do… I’d love to see it ?? I’ll put my finished loop up for people to browse when I get it right.
Forum: Plugins
In reply to: [Plugin: WP-Classified] Will development continue?@bloggista
What version of wordpress are you using? I’m using 2.7 and can’t seem to get it to work.
@cina
It’s not letting me make categories.
Thank you for making this! I know as soon as it works that it will be what I need!