• Jens Wedin

    (@jedisthlm)


    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
    https://www.jedisthlm.com/var.php
    and
    https://www.jedisthlm.com/var.php?cat=20
    When I then add the code to my index.php file it does not work.
    https://www.jedisthlm.com/index-utv.php
    and
    https://www.jedisthlm.com/index-utv.php?cat=20
    Anyone knows what I am doing wrong?

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘isset problem’ is closed to new replies.