WP textlink ads plugin

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ideamon
    Registered User
    • Jun 2006
    • 45

    #1

    WP textlink ads plugin

    Does anyone know the WP plugin that allow display text link ads base on category?
  • fris
    Too lazy to set a custom title
    • Aug 2002
    • 55679

    #2
    not sure but you could use an ad plugin and use conditional tags

    Code:
    <?php if ( is_category('cat') ): ?>
    <!-- Insert code for cat ad here -->
    
    <?php elseif ( is_category( 'dog') ): ?>
    <!-- Insert code for cat ad here -->
    
    <?php else: ?>
    <!-- Insert code for generic ad here -->
    
    <?php endif; ?>
    Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.

    Comment

    • Fat Panda
      Porn is Dead. Move along.
      • Aug 2006
      • 13296

      #3
      fris you are a wordpress ninja

      Comment

      • ideamon
        Registered User
        • Jun 2006
        • 45

        #4
        Thanks fris, but is_category does not working, I try to change to in_category and it's working!

        Comment

        • $5 submissions
          I help you SUCCEED
          • Nov 2003
          • 32195

          #5
          Fris is the WP MAN!

          Comment

          • Jdoughs
            Confirmed User
            • Mar 2004
            • 5794

            #6
            I spent the last couple days tweaking a dicks/cocks site, the site isnt primarily gay but because of the niche has lots of gay clicks too.

            I was lookin for a way to only show gay ads on gay categories, both parent and children cats, and to show a different sidebar/header for any post cat or tag, that was gay.

            To display a gay banner in the header on all posts in a descendant of cat 25 (gay), this will also work on tags that have the first post showing from desc of cat 25.

            PHP Code:
            if (is_home() ) {
                include(TEMPLATEPATH."/banner.php");
            } else if ( is_category( 'gay-dicks' ) || post_is_in_descendant_category( 25 ) ) {
                include(TEMPLATEPATH."/bangay.php");
            } else {
                include(TEMPLATEPATH."/banner.php");
            } 
            
            And to pull seperate sidebars (only shown on the gay side of the site)

            PHP Code:
             if ( in_category( 'gay-dicks' ) || post_is_in_descendant_category( 25 ) ) {
                include(TEMPLATEPATH."/sidebar-gay.php");
            } else {
                include(TEMPLATEPATH."/sidebar.php");
            } 
            
            As mentioned above, if_category is not as 'usefull' as in_category. You can use this to completely sanction off and make a category completely relevant and making the site solid for niche landers. The gay traffic never sees anything but stuff tagged as gay or put in the category of gay, likewise for the straight. (I do list the gay category on main page, but never include the posts in the updates, except in the gay pages.)

            If that makes any sense, great..lol
            LinkSpun - Premier Adult Link Trading Community - ICQ - 464/\281/\250
            Be Seen By New Webmasters/Affiliates * Target out webmasters/affiliates based on niches your sites are for less than $20 a month.
            AmeriNOC - Proudly hosted @ AmeriNOC!

            Comment

            • xxxjay
              Tube groupie.
              • Aug 2002
              • 13482

              #7
              good thread
              http://donttellmehowtoruinmylife.com/ - http://www.jmdigitalmarketing.com/my...s-and-reviews/ - http://www.wouldyouhitit.org - http://shinyobjectreviews.com/

              Comment

              Working...