Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter vrktech

    (@vrktech)

    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() )

    Thread Starter vrktech

    (@vrktech)

    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)