• rasmuscarlsen

    (@rasmuscarlsen)


    Hi,

    I need to include something simple:

    <?php include("splash.php")?> – and thats works just fine

    However – I need on specifik pages and I dont want to start screwing the funcions.php (and similar).

    My poor skills tels me to combine my very nice Include with this simple thing:

    ` <?php
    if (is_page(home)){};

    ?>`

    How?
    (or should I make a function?)

    thanks

    rasmus

Viewing 3 replies - 1 through 3 (of 3 total)
  • If you want it to show up on your homepage, I like using is_front_page().

    Thread Starter rasmuscarlsen

    (@rasmuscarlsen)

    yeah – I used is_page(home) but its the syntax I dont know

    ` <?php
    if (is_front_page){<?php include(“splash.php”)};

    ?>`
    ???
    ras

    Thread Starter rasmuscarlsen

    (@rasmuscarlsen)

    bingo:

    <?php if (is_front_page()) include("splash.php")?>;

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘is_page –> include’ is closed to new replies.