Current post category URL in widget
-
Hello folks,
I have a little problem with link which I would like to put into widget. I think that there is really easy way how to do it, but I do not have any idea how.
I have 3 companies, posts are divided by categories and subcatories as follow:
https://www.someserver.com/category/city1/comp1/
https://www.someserver.com/category/city1/comp2/https://www.someserver.com/category/city2/comp3/
Each company has it’s own posts (divided by post category). I would like to add some link into widget with following properties:
– It appears when post is not from general category
– It takes current post category and create link with text Contacts with href https://www.someserver.com/category/city1/comp1/contactsI found some plugins with hiding widgets or adding some php code, but I am not so familiar with it and I can not do it by myself.
Thank you for any help,
Peter.
- The topic ‘Current post category URL in widget’ is closed to new replies.