feed me feed me chillireward

Article (in detail)

Selective Content in Wordpress

 

I was reading David Airey’s post called “What are your favourite creative quotes” and having a good laugh at the “You cant polish turd” quote, when I came upon his concern about including quotes in every footer. He definetely expressed a bloggers genuine nightmare of too many outgoing links. I started to type my tip in his comments page, when I figured that the larger population may benefit with this tip.

The solution is very simple, and which I have used quite a bit in the Chilligavva site design.

Place the code wherever you want such as the footer, sidebar, header, only make sure that you thought of the conditions correctly, and you close the braces correctly.

     if is_home(){
     /*checking to see if you are in home page*/
?>
     <!– IF YOU ARE ADDING A PHP CONTENT SUCH AS WORDPRESS PLUGIN, ADD THEM WITHIN THE PHP TAGS–>
          "YOUR ACTUAL PLUGIN"
     ?>

     <!– IF YOU ARE ADDING ANY OTHER SUCH AS JAVASCRIPT OR HTML, JUST ADD THEM DIRECTLY–>
     /* end brace for above if conditional*/
     }
?>

Page copy protected against web site content infringement by Copyscape

Liked this article? Subscribe to the article feed via feedburner. Dont want to be hassled by feeds, you can Subscribe by E-mail. Want to know who said what? Get my comments feed. Dont know what a RSS feed is? Read about RSS feeds.

Other Posts for you to Enjoy

three
comments

18 Apr 20078:46 am
 
03
mybloglog avatar
santaram said

telugu blog chala bagundhi i appreciate this blog

 
10 Apr 20076:55 pm
 
02
mybloglog avatar
davidbdale said

Hi Lakshmi!
Your new design is charming and very personal. I like the script-inspired logotype face. Not crazy about the drawing of the shell, though. Import a gif, maybe? Oh, and it was disturbing to see my own name crossed-out in your blogroll, instead of just a different color. Felt like you’d “cut” me just before I arrived. Omaha, Nebraska!?? How does it feel to be so far from home?

 
31 Mar 20079:43 am
 
01
mybloglog avatar
David Airey :: Creative Design :: said

Hi Lakshmi,

Thanks a lot for offering this.

I’ll have to give it a shot when I have some time. For now, I’m about to go out with friends to celebrate my birthday yesterday.

I’m not really one for celebrating my own birthday, but I do like socialising with friends, playing some pool etc.

Talk soon.

 

Feedback Please!

Note: Your comments may take time to appear, as they are moderated for the first time..

All comments are followed.

 
 
Security Image