Title: ttyd0's Replies | WordPress.org

---

# ttyd0

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

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

 Search replies:

## Forum Replies Created

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

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Plugin: NextGEN Gallery] %GALLERY_NAME% and others](https://wordpress.org/support/topic/plugin-nextgen-gallery-gallery_name-and-others/)
 *  Thread Starter [ttyd0](https://wordpress.org/support/users/ttyd0/)
 * (@ttyd0)
 * [15 years, 11 months ago](https://wordpress.org/support/topic/plugin-nextgen-gallery-gallery_name-and-others/#post-1510682)
 * It’ll be great! =) This method is more convinient then editing php each time 
   after update!
 * Thank you!
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Sort posts by custom field in one category (other have to be sort by default)](https://wordpress.org/support/topic/sort-posts-by-custom-field-in-one-category-other-have-to-be-sort-by-default/)
 *  Thread Starter [ttyd0](https://wordpress.org/support/users/ttyd0/)
 * (@ttyd0)
 * [16 years, 5 months ago](https://wordpress.org/support/topic/sort-posts-by-custom-field-in-one-category-other-have-to-be-sort-by-default/#post-1305481)
 * Yes!
    Thank you very much!
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Sort posts by custom field in one category (other have to be sort by default)](https://wordpress.org/support/topic/sort-posts-by-custom-field-in-one-category-other-have-to-be-sort-by-default/)
 *  Thread Starter [ttyd0](https://wordpress.org/support/users/ttyd0/)
 * (@ttyd0)
 * [16 years, 5 months ago](https://wordpress.org/support/topic/sort-posts-by-custom-field-in-one-category-other-have-to-be-sort-by-default/#post-1305469)
 * I’ve got only 4 posts on test system and just make preference for 3 posts per
   page, and got same result =( with your code.
 * Tried to use esmi’s code on test system, it works, but add posts from other categories(
   that’s no big problem).
 * It’s strange, but esmi’s code and yours first cod do not works on real system
   =( i do not know what is wrong…
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Sort posts by custom field in one category (other have to be sort by default)](https://wordpress.org/support/topic/sort-posts-by-custom-field-in-one-category-other-have-to-be-sort-by-default/)
 *  Thread Starter [ttyd0](https://wordpress.org/support/users/ttyd0/)
 * (@ttyd0)
 * [16 years, 5 months ago](https://wordpress.org/support/topic/sort-posts-by-custom-field-in-one-category-other-have-to-be-sort-by-default/#post-1305461)
 * xdesi, hello.
    i’ve just move this solution to real system… there are 6 pages
   with 10 posts on each, and your code sort posts correctly, but (!) then i try
   to view second, fird and other pages… “wp-pagenavi” plugin show that i stay at
   first page, system show (at url bar) “…/page/6/” =( and show me first ten posts…
 * so i’ve got only ten first posts on each page…
 * (there are no any problems on other categories)
 * P.S. one more thing.. it’s strange, but esmi code and your first code stop works
   on real system… both WP versions 2.8.6 now (i’ve just upgrade real site)… both
   systems has same plugins…
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Sort posts by custom field in one category (other have to be sort by default)](https://wordpress.org/support/topic/sort-posts-by-custom-field-in-one-category-other-have-to-be-sort-by-default/)
 *  Thread Starter [ttyd0](https://wordpress.org/support/users/ttyd0/)
 * (@ttyd0)
 * [16 years, 5 months ago](https://wordpress.org/support/topic/sort-posts-by-custom-field-in-one-category-other-have-to-be-sort-by-default/#post-1305220)
 * xdesi, thanks! it works! =)
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Sort posts by custom field in one category (other have to be sort by default)](https://wordpress.org/support/topic/sort-posts-by-custom-field-in-one-category-other-have-to-be-sort-by-default/)
 *  Thread Starter [ttyd0](https://wordpress.org/support/users/ttyd0/)
 * (@ttyd0)
 * [16 years, 5 months ago](https://wordpress.org/support/topic/sort-posts-by-custom-field-in-one-category-other-have-to-be-sort-by-default/#post-1305196)
 * xdesi, esmi, thank you.
    xdesi, sorry, you code works, my fault, didn’t wait 
   file to be uploaded…
 * But there is one thing, if I add custom field in other’s category post – it’ll
   apears in this one…
    so i see cat3post cat3post cat2post cat3post in cat3 page.
   there is no big problem with it, i’ll be careful =)
 * thanks again.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Sort posts by custom field in one category (other have to be sort by default)](https://wordpress.org/support/topic/sort-posts-by-custom-field-in-one-category-other-have-to-be-sort-by-default/)
 *  Thread Starter [ttyd0](https://wordpress.org/support/users/ttyd0/)
 * (@ttyd0)
 * [16 years, 5 months ago](https://wordpress.org/support/topic/sort-posts-by-custom-field-in-one-category-other-have-to-be-sort-by-default/#post-1305164)
 * Nothing happens =(
 * I’ve got only archive.php (my theme based on default one)…
 *     ```
       get_header(); ?>
   
       <div class="mainDIV">
       	<div class="left">
       <?php get_sidebar(); ?>
       	</div>
       	<div class="right">
       <?php if(is_category('3')){
       query_posts('meta_key=sort_num&orderby=meta_value&order=ASC');
       }
       ?>
       <?php if (have_posts()) : ?>
   
       	<?php $post = $posts[0]; // Hack. Set $post so that the_date() works. ?>
       	<?php /* If this is a category archive */ if (is_category()) { ?>
       <h1><?php printf(__('%s', 'artvladivostok'), single_cat_title('', false)); ?></h1>
       	<?php /* If this is a tag archive */ } elseif( is_tag() ) { ?>
       <h1><?php printf(__('Posts Tagged ‘%s’', 'artvladivostok'), single_tag_title('', false) ); ?></h1>
       	<?php /* If this is a daily archive */ } elseif (is_day()) { ?>
       <h1><?php printf(_c('Archive for %s|Daily archive page', 'artvladivostok'), get_the_time(__('F jS, Y', 'artvladivostok'))); ?></h1>
       	<?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
       <h1><?php printf(_c('Archive for %s|Monthly archive page', 'artvladivostok'), get_the_time(__('F, Y', 'artvladivostok'))); ?></h1>
       	<?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
       <h1><?php printf(_c('Archive for %s|Yearly archive page', 'artvladivostok'), get_the_time(__('Y', 'artvladivostok'))); ?></h1>
       	<?php /* If this is an author archive */ } elseif (is_author()) { ?>
       <h1><?php _e('Author Archive', 'artvladivostok'); ?></h1>
       	<?php /* If this is a paged archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
       <h1><?php _e('Blog Archives', 'artvladivostok'); ?></h1>
       	<?php } ?>
   
       			<?php while (have_posts()) : the_post(); ?>
       ```
   
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Plugin: WP_Multilingual] WPML 2.8.4 compatible version (betta)](https://wordpress.org/support/topic/plugin-wp_multilingual-wpml-284-compatible-version-betta/)
 *  [ttyd0](https://wordpress.org/support/users/ttyd0/)
 * (@ttyd0)
 * [16 years, 5 months ago](https://wordpress.org/support/topic/plugin-wp_multilingual-wpml-284-compatible-version-betta/#post-1188870)
 * Hello.
    Oleg, could you give new link to your plugin?
 * P.S. vibirau pluging, chtob dva yazika bilo dlya polzovatelei… uzhe neskolko 
   poproboval – hochu i vash. Pochemu-to dumau, chto on udobnei =)

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