Timeline for SEO Friendly URLs for my plugin categories
Current License: CC BY-SA 3.0
7 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jun 20, 2017 at 7:31 | history | bounty ended | HOY | ||
Jun 19, 2017 at 16:23 | comment | added | Johansson | @HOY It's an additional check, in case someone uses the function somewhere outside that page. Future proof! | |
Jun 19, 2017 at 16:14 | vote | accept | HOY | ||
Jun 19, 2017 at 16:13 | comment | added | HOY |
I used get_query_var('cat') function and it works and everything is fine now, one thing that I didn't understand from your code is why did you needed to use is_page_template , we know that it is already page-custom.php template because I choose it while creating my page. Also I didn't use isset function too.
|
|
Jun 19, 2017 at 13:25 | comment | added | Johansson |
@HOY That's strange. Did you flush the permalinks? You can also get the value by using $wp_query->query_vars['cat'] instead of $_REQUEST['cat'] .
|
|
Jun 19, 2017 at 13:06 | comment | added | HOY | Hi, I have tried your solution and faced a problem, I have updated my question with it, can you please check ? | |
Jun 19, 2017 at 0:59 | history | answered | Johansson | CC BY-SA 3.0 |