Title: Turtles's Replies | WordPress.org

---

# Turtles

  [  ](https://wordpress.org/support/users/turtles/)

 *   [Profile](https://wordpress.org/support/users/turtles/)
 *   [Topics Started](https://wordpress.org/support/users/turtles/topics/)
 *   [Replies Created](https://wordpress.org/support/users/turtles/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/turtles/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/turtles/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/turtles/engagements/)
 *   [Favorites](https://wordpress.org/support/users/turtles/favorites/)

 Search replies:

## Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)

 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Complex query. Don't know where to start](https://wordpress.org/support/topic/complex-query-dont-know-where-to-start/)
 *  Thread Starter [Turtles](https://wordpress.org/support/users/turtles/)
 * (@turtles)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/complex-query-dont-know-where-to-start/#post-4655160)
 * It’s working with 1 loop per year. It suits me.
    I found the code somewhere else
   and just add the date condition. For example for year 2011 :
 *     ```
       <?php
       				//for each category, show one post
       				$cat_args=array(
       				  'orderby' => 'name',
       				  'order' => 'ASC'
       				   );
       				$categories=get_categories($cat_args);
       				  foreach($categories as $category) {
       				    $args=array(
       					'showposts' => 1,
       					'category__in' => array($category->term_id),
       					'caller_get_posts'=>1,
       					'year'=>2011
       				    );
       				    $posts=get_posts($args);
       					if ($posts) {
       					  echo '<p><a href="' . get_category_link( $category->term_id ) . '" title="' . sprintf( __( "View all posts in %s" ), $category->name ) . '" ' . '>' . $category->name.'</a> </p> ';
       					  foreach($posts as $post) {
       					    setup_postdata($post); ?>
       					    <p><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></p>
       					    <?php
       					  } // foreach($posts
       					} // if ($posts
       				    } // foreach($categories
       				?>
       ```
   
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Complex query. Don't know where to start](https://wordpress.org/support/topic/complex-query-dont-know-where-to-start/)
 *  Thread Starter [Turtles](https://wordpress.org/support/users/turtles/)
 * (@turtles)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/complex-query-dont-know-where-to-start/#post-4655151)
 * Still digging into queries.
 * I will give a try with multiple queries, 1 per year as it will dramatically simplify
   the query and make it simple to put my divs containing years.
 * <div>2014</div>
    -article -article -article <div>2013</div> -article etc
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Impossible letters in the comment textarea](https://wordpress.org/support/topic/impossible-letters-in-the-comment-textarea/)
 *  Thread Starter [Turtles](https://wordpress.org/support/users/turtles/)
 * (@turtles)
 * [14 years, 10 months ago](https://wordpress.org/support/topic/impossible-letters-in-the-comment-textarea/#post-2231472)
 * Ok Chadrew. Thanks for the hint !
 * I’ll try to unactive each JS to see where is the problem.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Impossible letters in the comment textarea](https://wordpress.org/support/topic/impossible-letters-in-the-comment-textarea/)
 *  Thread Starter [Turtles](https://wordpress.org/support/users/turtles/)
 * (@turtles)
 * [14 years, 10 months ago](https://wordpress.org/support/topic/impossible-letters-in-the-comment-textarea/#post-2231469)
 * I still have no idea how to correct this weird bug.
 * Any idea ?
 * Thanks

Viewing 4 replies - 1 through 4 (of 4 total)