Timeline for How do I retrieve the category ID (ugly permalinks) in my sub-navigation menu?
Current License: CC BY-SA 3.0
5 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Feb 26, 2017 at 15:59 | vote | accept | panza | ||
Feb 26, 2017 at 1:53 | answer | added | Milo | timeline score: 1 | |
Feb 26, 2017 at 1:33 | comment | added | panza | Yeah, it is long story, the theme was developed for and worked fine with pretty permalinks, but it is not fine with ugly ones. I have tried the same approach by doing this: <a class="myotherclass='". get_term_link( $sectionSlug) . "'>AmazingCategory</a> but I am getting the wrong category name and id. Please note that my sub-nav is a separate template php than my sidebar.php. I am very much lost as I had no idea why it was actually working fine with pretty permalinks. Any idea how I can change it to pick the right cat/cat id? Thanks | |
Feb 26, 2017 at 1:25 | comment | added | Milo | So you have hard-coded links that you want to replace? I think the answer may be the same as the one to your other question. | |
Feb 26, 2017 at 1:14 | history | asked | panza | CC BY-SA 3.0 |