![]() |
Wordpress plugin needed
I'm sure one of you geniuses knows this, and I'm almost sure its out there.
I need a plugin that shows an element (widget if needs be) in the sidebar dependent on category. So I can basically have a bit of the sidebar that only shows for categiry "lesbians" for instance. Cheers |
|
I need to fuck a five-foot, 90lbs blonde chick in the ass, so what...?
|
easy to do
|
doable manually for anywhere in the theme with conditional includes, not sure how to go about doing it with a plugin or widget though.
|
Quote:
|
Code:
<?php if (is_home('')) : ?> |
thanks Jew Cat! Have a feeling that may get complicated if there's 200 different bits to include...
|
Quote:
|
Quote:
Great simple stuff - this is why I wish I could code myself |
Quote:
personally i'd just create a seperate .php document with all my includes sorted within it. then include the conditions.php or whatever into the sidebar.php beyond that for organization. but if one of these plugins works for you, post back to the thread. i wouldn't mind looking it over. |
Quote:
|
Jewcat just saw your edit... will do :)
|
Quote:
then i tried this and almost had it, but nothing shows Code:
<?php if (is_home ('') and is_page ('')) : ?> |
Quote:
|
if/elseif
|
Quote:
|
Angry Jew Cat, do you do custom wordpress code work? would love to have a contact in that area, I always have client asking for custom plugins
|
Quote:
|
Quote:
i'm thinking if you want something first page only, why not just put it in a sticky post and tack it right at the top of the index? |
Quote:
|
Quote:
im thinking some kind of variation of this code Code:
<?php if (!is_paged()) : ?> that wont work either it will come to me in a dream |
Quote:
i just dunno... |
Quote:
Code:
<?php if ( (is_home())&&!(is_paged()) ){ ?> |
Quote:
|
Quote:
Code:
<?php if ( (is_home()) && !(is_page()) && !(is_single()) && !(is_search()) && !(is_archive()) && !(is_author()) && !(is_category()) && !(is_paged()) ) { ?> |
Quote:
|
you don't happen to know a way to assign includes to specific pages in your general posting pagination would you?
|
Thanks for the code. Very useful!
|
Quote:
? |
Quote:
|
Quote:
add this to functions.php Code:
function do_pageads() { Code:
|
All times are GMT -7. The time now is 09:53 PM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123