Timeline for Custom post type category, taxonomy and URL rewrite problem
Current License: CC BY-SA 4.0
22 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Nov 24, 2020 at 9:31 | comment | added | user3135691 | Cool, happy we got this one solved. | |
Nov 24, 2020 at 4:41 | comment | added | Reza | You are a GEM, Thank you so much. It is a pretty annoying problem and found it very difficult to resolve. Apparently lots of people ran into the same issue | |
Nov 24, 2020 at 4:39 | vote | accept | Reza | ||
Nov 24, 2020 at 0:51 | comment | added | user3135691 | Your path is wp-content/plugins/templates/ - so it's missing the plugin folder in that path. It should be wp-content/plugins/products/templates | |
Nov 24, 2020 at 0:38 | comment | added | user3135691 | Don't forget step 4 before looking at the frontend /products. | |
Nov 24, 2020 at 0:35 | comment | added | user3135691 | Screenshot 1) You're not getting the correct path. That's exactly what I ment by "can be tricky". I guess it depends on your environment and you're not getting the right path. Screenshot 2) Looks completely okay. Screenshot 3) is also ok as far as I can see. I've put it all together. I did this, because I was stuck at the same point some time ago. I hope you don't mind if I might remind you to please mark the answer as correct. Enjoy: bitbucket.org/clickadelic/wpse-products/get/ceacd1d.zip or look at the code here bitbucket.org/clickadelic/wpse-products/src/master | |
Nov 23, 2020 at 13:50 | comment | added | Reza | Thank you so much for helping me out. I have no issues following until step 3 I have to mention these. - I am using astra theme (it's child theme) - I am using a front-end builder on this particular project (but I like to understand the problem and it's solution) These screenshots might be helpful to understand where I am stuck at: !screen1 !screen2 !screen3 | |
Nov 21, 2020 at 2:14 | comment | added | user3135691 | I've smashed Step 1. and Step 2. in a snippet and tested it.bitbucket.org/clickadelic/workspace/snippets/bLaBxE/… I'd be happy if you accept the answer as correct, if it worked for you. Code from the answer should also work now. | |
Nov 21, 2020 at 1:52 | comment | added | user3135691 | You're welcome. I fixed the 2 errors in my answer. Step 1) was missing an "s" in $cpt_slug, then the taxonomy function was expecting the singular form. Sorry about that. Step 3. was Step 4. (I just messed up the numbers), which is also now fixed. The code / Step 2. should work now, so you can finish step 2 and move on to step 3. | |
Nov 21, 2020 at 1:48 | history | edited | user3135691 | CC BY-SA 4.0 |
added 2 characters in body
|
Nov 21, 2020 at 1:28 | history | edited | user3135691 | CC BY-SA 4.0 |
edited body
|
Nov 21, 2020 at 0:02 | comment | added | Reza |
First of all thank you so much for such an elaborative explanation. It really made my day. I tried the code and messed around for like two hours. Step 1 runs the plugin perfectly. However Adding the Step 2 does not create taxonomy. I tried to work on it on my own, but I had no luck. // Taxonomy Args 'rewrite' => array( 'slug' => 'marken' // I'm guessing \'Marken\' is Brands in German ) ); Also I noticed Step 3 is missing. I am not sure if that is a typo or not. Thank you so much again for helping out
|
|
Nov 20, 2020 at 23:56 | comment | added | Reza | First of all thank you so much for such an elaborative explanation. It really made my day. I tried the code and messed around for like two hours.\ | |
Nov 20, 2020 at 2:49 | history | edited | user3135691 | CC BY-SA 4.0 |
deleted 12 characters in body
|
Nov 20, 2020 at 2:43 | history | edited | user3135691 | CC BY-SA 4.0 |
added 83 characters in body
|
Nov 20, 2020 at 2:35 | history | edited | user3135691 | CC BY-SA 4.0 |
deleted 11 characters in body
|
Nov 20, 2020 at 2:25 | history | edited | user3135691 | CC BY-SA 4.0 |
added 63 characters in body
|
Nov 20, 2020 at 2:14 | history | edited | user3135691 | CC BY-SA 4.0 |
added 1 character in body
|
Nov 20, 2020 at 2:03 | history | edited | user3135691 | CC BY-SA 4.0 |
deleted 2163 characters in body
|
Nov 20, 2020 at 1:40 | history | edited | user3135691 | CC BY-SA 4.0 |
added 145 characters in body
|
Nov 20, 2020 at 1:32 | history | edited | user3135691 | CC BY-SA 4.0 |
added 145 characters in body
|
Nov 20, 2020 at 1:19 | history | answered | user3135691 | CC BY-SA 4.0 |