How to add link in sidebar under specific category (display only for that category) ? Can anyone share code for that ?? Thanks in advance for that. DON.
I want to add one link in a sidebar which appear only in that specific category (not any other pages as well as categories). DON.
My logic may be flawed here but.... create a menu that you will not use, using the wp menu system that includes the link in question? Then, add said link to the category tree much like you would add say home where you type a custom URL. Then use "my category order" widget perhaps and use the widget logic plugin so it only appears on that category page? Not real elegant I know lol... Not sure that is entirely helpful as it won't be styled per say or stand out or be indented for instance but that should at least get it in there. That is a tricky one. I will think it over. You may want to ask this on stackoverflow.com Nigel
Thanks both of you. @Nigel - Category is already there since long time @dcristo - I am sure that code related to that exist but not remember as of now. Someone know that and share here for sure. Waiting.. DON.
I am not exactly sure if this is what you want, but you can place a condition in your sidebar.php to determine if you are browsing a certain category (http://codex.wordpress.org/Function_Reference/is_category).
this plugin will do as you want http://wordpress.org/extend/plugins/widget-context/ use "target by url" put abc.com/category/love/*
Thanks a lot. Your given link helped me a lot. Though i need to alter it little bit to work properly. DON.
No problem. You can also use the function wp_get_post_categories to retrieve a list of categories if you want to show the link also when a post assigned to a specific category (categories) is being displayed.