• Resolved Beee

    (@beee)


    I know the question is already been asked but after reading this forum for 2 hours, I still can’t find the answer (maybe due to my lack of knowledge in php).

    i thought I knew some, but I can’t seem to get just cat_id=1 on the frontpage, without showing any other (sub)directories.

    i assume the answer is short, but if somebody could give it… please…

    I looked at the conditionals for including a file but I don’t know which get command to give to show only cat_id=1

    I know include isn’t the correct one, but I don’t which is.

    <?php
    if (is_category(1)) {
    include(TEMPLATEPATH . ‘/home.php’);
    } else {
    include(TEMPLATEPATH . ‘/single1.php’);
    }
    ?>

Viewing 2 replies - 16 through 17 (of 17 total)
  • Thread Starter Beee

    (@beee)

    would this WP query also go for pages ???

    I would like a page to ‘work’ as a category (because of the permalinks) which holds then all pics from 1 girl.

    Thread Starter Beee

    (@beee)

    I think I know what went wrong…
    I had a home.php in the same directory since it belongs to another site and I wanted to copy thigns from it.

    I just looked into hierarchy and I think i solved by removing this home.php and adding it to the index.

Viewing 2 replies - 16 through 17 (of 17 total)
  • The topic ‘Topics on frontpage’ is closed to new replies.