![]() |
Programmers: can you do this in Wordpress?
Right now the sidebars in my Wordpress blog are all static.
So if someone is on the anal page, they'll see the exact same side bars as if theyre on the cumshot page, the tranny page, the ebony page, etc. Is there any way I can make it dynamic? So when someone is on the ebony page it shows some ebony banners in my sidebars? And when someone is on the anal page it shows anal banners on the sidebars? In the url it does say www.mysite.com/anal, www.mysite.com/ebony etc. So maybe theres a way to pull the category name from the url and have it so that whatever category is showing in the url, will show the approriate banner in the url. Anyone know how to do this? |
Im not sure how wordpress passes in its categories but you could put something along the lines of this in your template
Code:
<? |
Quote:
Thank you! |
yup, what he said above, just tell wordpress to check the category before it pulls the sidebar, then it loads a certain sidebar for that category
you can tell it multiple sidebar.php file, and then just duplicate the sidebar.php in your ftp for each sidebar you need |
Quote:
Next question please :thumbsup |
I cant get that to work correctly.
|
this is some serious business
|
|
serious ....:) :) :)
|
I want wordpress to load niche specific link trades in the side bar for each category and full list of link trades on main page, can it do that?
|
you can use is_category() function and the combine it with conditional tag....for example if(is_category('teen')) { whatever; }
|
I just can't code.
How much would it cost to hire a programmer to do this for me? |
ok, lets say you've got 3 categories,
babe lesbian black this is untested, but should work ... :thumbsup PHP Code:
|
Quote:
|
Quote:
It works!! Thank you! btw, I have a LOT of categories, would this slow down the page to have like 50 categories listed inthis code? is there a way to make it so I dont slow down the page processing? |
All times are GMT -7. The time now is 12:38 PM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123