1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Has anyone seen a wordpress plugin that:

Discussion in 'Blogging' started by dynamicvb, Nov 30, 2008.

  1. dynamicvb

    dynamicvb Regular Member

    Joined:
    Sep 2, 2007
    Messages:
    389
    Likes Received:
    185
    Allows you to generate different javascript based on category or tag. What I would like to do is to load up different versions of adsense blocks depending upon the category of the post so I'll know which topics are performing the best. I have seen anything to do this and with my limited php knowledge I'm drawing a blank.

    I woudl tihnk you should be able to use conditional formatting to check for various categories, but I'm not sure exactly how. Guess I need to go buy a PHP book and start reading up.
     
  2. trigger_my_passion

    trigger_my_passion Junior Member

    Joined:
    Oct 2, 2008
    Messages:
    108
    Likes Received:
    483
    Check this:

    Code:
    http://codex.wordpress.org/Template_Tags/in_category
    Let me know if you still need help after you try to follow the above.
     
  3. JigJig

    JigJig Regular Member

    Joined:
    Nov 3, 2008
    Messages:
    200
    Likes Received:
    30
    This plugin could come in very handy, thanks!
     
  4. dynamicvb

    dynamicvb Regular Member

    Joined:
    Sep 2, 2007
    Messages:
    389
    Likes Received:
    185
    Thanks sridhar, I think this just may do what I was wanting to accomplish.
     
  5. trigger_my_passion

    trigger_my_passion Junior Member

    Joined:
    Oct 2, 2008
    Messages:
    108
    Likes Received:
    483
    What plugin are you talking about?