Hi,
Did you hide the the date on all modules using custom css and you want to appear only on that specific category? Please provide more details about your customizations and also provide a link so we can take a look. You could use category’s unique class – http://screencast.com/t/uFnub8GE
Thanks!
Hi Alin,
I am not using custom css. I just turn date on/off under Post Settings -> Show date. I would like to turn date on only on posts in the news category. Is that possible? Here is link to page http://naturguide.dk/
Thanks,
Hi,
Please make a backup of your current td_module.php file and then replace date function – http://screencast.com/t/ziIvhEnJfZK0 with this code – http://pastebin.com/DJVQw7Vw just replace your category slug – http://screencast.com/t/2ULeeWBxGj with your category name slug – http://screencast.com/t/d7E115SAZ4c
Hope this helps!
Hi
The function’s code has been changed a bit, that’s why the previous changes don’t work now. Please make a backup of your current td_module.php file and then replace date function – http://screencast.com/t/ziIvhEnJfZK0 with this code: http://pastebin.com/S6FtcDhK – http://screencast.com/t/mHLH9r8Md
Let us know how it goes.
Thanks!
Hi
Sorry about that, I provided a solution for a different approach.
I assume that the News category from your site have this name: http://screencast.com/t/HOC5l6BB If does try this code http://pastebin.com/rkT4N3Vd in td_module.php otherwise follow this link to adjust the changes: http://screencast.com/t/yxtMWtKfG6Y This code should display the date only for post from News category.
Let me know how it goes.
Thanks!
Hi
Try this code, it should work properly: http://pastebin.com/7WiJ8wmu
Let me know ho it goes.
Thanks!
HI
The code is tested and works fine, please check those screens where I’ve made a test for tech category: http://screencast.com/t/CYw2bpFi – http://screencast.com/t/6wVmiuJBcL2h Make sure you add the proper slug for yopur category or you can also add category id as parameter from in_category() function: http://screencast.com/t/Poej5Glv
Hope this helps.
Thanks!
HI
To work on single posts you need to edit td_module_single_base.php and add the same condition here: http://screencast.com/t/k1s2AplZNEAR
Thanks!
Hello Lisborg,
If you want to display the dates on posts in a certain category you should try using the is_category() function hardcoded in this file. So, if you are not aware of the steps which are needed to take in this case, please consider hiring a freelancer/developer to help you because we cannot provide custom services at the moment, sorry!
Thanks for the message!