Article Feed

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*/
     }
?>

Lakshmi Mareddy is a polyglot from South India and is interested in design, technology, UI and human computing. She also is a history buff and an avid reader. If you like the way she writes, why dont you subscribe to the site feed via RSS or Email? Its absolutely free and helps you stay current. You can contact her via the contact page or write to lak [at] mareddy [dot] com.

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.

 
Share your thoughts

Note: Your comments may take time to appear, as they are moderated for the first time.. All comments are followed. Your Personal Info will not be shared. Still have concerns? Read the rights and privacy details of Chilligavva..

 
Security Image
 
CommentLuv Enabled