Title: isset problem
Last modified: August 18, 2016

---

# isset problem

 *  [Jens Wedin](https://wordpress.org/support/users/jedisthlm/)
 * (@jedisthlm)
 * [21 years, 5 months ago](https://wordpress.org/support/topic/isset-problem/)
 * Hi
    This is my first post so bare with me if this has already been posted in 
   this forum. At my blog I have started with a new design. I would like to have
   the frontpage as one design and all the other pages, as another. My idea was 
   to make use of the isset php function. When you first enter the page the url 
   would without any vars. When the user hits an article or search the vars are 
   set in the url like this cat=20. The function I made was an if function, if an
   var is set it would write id=contentpage if not it would write id=”frontpage”.
   I just made an testpage wich do not have anyting to do with WP and then it work.
   The code is also on this page [http://www.jedisthlm.com/var.php](http://www.jedisthlm.com/var.php)
   and [http://www.jedisthlm.com/var.php?cat=20](http://www.jedisthlm.com/var.php?cat=20)
   When I then add the code to my index.php file it does not work. [http://www.jedisthlm.com/index-utv.php](http://www.jedisthlm.com/index-utv.php)
   and [http://www.jedisthlm.com/index-utv.php?cat=20](http://www.jedisthlm.com/index-utv.php?cat=20)
   Anyone knows what I am doing wrong?

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

 *  [prara](https://wordpress.org/support/users/prara/)
 * (@prara)
 * [21 years, 5 months ago](https://wordpress.org/support/topic/isset-problem/#post-107605)
 * I think you have to use isset with the rest of the variables like:
    isset($p)
   || isset($cat) || isset($s) || isset($static)
 *  [Ruby Sinreich](https://wordpress.org/support/users/rubyji/)
 * (@rubyji)
 * [21 years, 5 months ago](https://wordpress.org/support/topic/isset-problem/#post-107655)
 * Try using `<?php if(is_home()) ...` as described here [http://wordpress.org/support/3/13505](http://wordpress.org/support/3/13505)
 *  Thread Starter [Jens Wedin](https://wordpress.org/support/users/jedisthlm/)
 * (@jedisthlm)
 * [21 years, 5 months ago](https://wordpress.org/support/topic/isset-problem/#post-107746)
 * Thanks alot all for your answers.
    I used the QUERY_STRING function and now it
   works like a charm. 😀

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

The topic ‘isset problem’ is closed to new replies.

 * 3 replies
 * 3 participants
 * Last reply from: [Jens Wedin](https://wordpress.org/support/users/jedisthlm/)
 * Last activity: [21 years, 5 months ago](https://wordpress.org/support/topic/isset-problem/#post-107746)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
