GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   WP textlink ads plugin (https://gfy.com/showthread.php?t=929986)

ideamon 09-25-2009 09:25 AM

WP textlink ads plugin
 
Does anyone know the WP plugin that allow display text link ads base on category? :helpme

fris 09-25-2009 10:46 AM

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; ?>


Fat Panda 09-25-2009 11:07 AM

fris you are a wordpress ninja

ideamon 09-27-2009 10:25 AM

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

$5 submissions 09-27-2009 01:38 PM

Fris is the WP MAN!

Jdoughs 09-27-2009 01:47 PM

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_category25 ) ) {
    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_category25 ) ) {
    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

xxxjay 09-27-2009 01:50 PM

good thread


All times are GMT -7. The time now is 01:42 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123