Hello,
How to get url of post category that is displayed in “td_block_1” module?
After click I want to open category template so I need some kind of ‘get_category_url’ to put it in the ‘href’ attribute (in file: \wp-content\themes\Newspaper\includes\shortcodes\td_block_1.php).
Please see attached file:
http://www9.zippyshare.com/v/BGrxEtmJ/file.html
or:
http://s000.tinyupload.com/index.php?file_id=65203616549010069460
Thanks in advance.
Hello rdiv,
Unfortunately, the theme does not have any such an option that allows you to change the category URL in the href attribute for post category that is displayed in td_block_1, sorry! Please keep in mind that this is automatically done by our theme and if you want to change the structure of it, you should alter the code from the theme core files where the code is created, like td_block_1.php, td_module_4.php and, td_module_6.php if you are using the Block 1. Please notice that it is not a simple task and if you are not aware of the steps which are needed to take in this regard, please consider hiring a freelancer/developer to help you because we cannot provide custom work at the moment, sorry!
Thanks for your understanding!
Hello,
thanks for Your reply. I don’t want to change the category URL. I just want to get url of current post category that is displayed in “td_block_1” module (as you can see in the screenshot). It’s a small theme modification (I use Newspaper child theme).
After clicking on the link ‘See all news in category’ I want to open current category template (it’s default category wordpress template, it’s also built-in Newspaper theme).
In the Newspaper theme there is a function called ‘get_block_title’ that shows the category title (see in the screenshot)
I need to use a similar function, like ‘get_block_current_category_url’. Maybe it is already built-in the Newspaper theme? Or can You give me some advices how to add something like this?
Screenshot:
http://www2.zippyshare.com/v/sKn6nxaB/file.html
Regards!
-
This reply was modified 9 years by
rdiv.
Hello rdiv,
Replied to the other topic here -> https://forum.tagdiv.com/topic/how-to-show-all-posts-of-the-category/
Thanks.