Title: vrktech's Replies | WordPress.org

---

# vrktech

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

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

 Search replies:

## Forum Replies Created

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

 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Get Posts with specific custom value and specific category](https://wordpress.org/support/topic/get-posts-with-specific-custom-value-and-specific-category/)
 *  Thread Starter [vrktech](https://wordpress.org/support/users/vrktech/)
 * (@vrktech)
 * [16 years, 8 months ago](https://wordpress.org/support/topic/get-posts-with-specific-custom-value-and-specific-category/#post-1196287)
 * Hi MichaelH, Thanks for your input, I tried that, it works but my requirement
   is a bit different
 * I am looking to add this code to index.php, category.php
 * country is added as a custom field.
 * The site works as usual wp install, and when the user selects a particular country
   then it keeps the country in a session variable. Again the site works normally
   but only the posts for that country are displayed.
 * I added this
 *     ```
       $args=array(
         'showposts' => 3,
         'category__in' => array(3,5),
         'caller_get_posts'=>1
         'meta_key' => 'country',
         'meta_value' => 'MY SESS Variable here'
       );
       ```
   
 * It is not working when I select a category (I replaced ‘category__in’=>$catid
   with is_category() )
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Permalinks not working in my new installation](https://wordpress.org/support/topic/permalinks-not-working-in-my-new-installation/)
 *  Thread Starter [vrktech](https://wordpress.org/support/users/vrktech/)
 * (@vrktech)
 * [16 years, 8 months ago](https://wordpress.org/support/topic/permalinks-not-working-in-my-new-installation/#post-1186379)
 * Yes I got it done,
 * I dont know what happened, but at first when I asked my hosting support to check
   for mod_rewrite enabled they said that they cant help with 3rd party scripts,
 * now after a day my installation on new domain works, I am still confused what
   might be the problem…

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