Skip to main content
12 events
when toggle format what by license comment
Mar 18, 2022 at 0:27 comment added Sally CJ Alright then, maybe somebody would come up with a better answer. But my answer was really just telling you that if you want to be able to get the different/correct query var value (e.g. prod-cat1), then don't set the value to be always true like your original code was doing. So if something went wrong after implementing my suggestion, then maybe you didn't implement it correctly or that the problem already existed before, but you just didn't realize it.
Mar 17, 2022 at 22:26 comment added user7459842 Hey @SallyCJ . I totally understand . since I as not able to tag you in comment , I thought you may have not got notification of my message. More over I think even if I have 'species' as base slug, even then this problem stays as it that is single post for the post type stops working. Since this is creating other problem, so I think this code needs inprovement. So I was hoping for an answer if you have time OR may be some one else may stumble on to this question if they see it answers. SO I am sorry if you feel marking it answered was wrong
Mar 17, 2022 at 2:52 comment added Sally CJ My apologies, I've been quite occupied lately, hence I was unable to reply earlier. And sorry that the snippet in my previous comment didn't work. But then, is that the reason you unaccepted my answer after stating my answer answered your question? And actually, if the plugin is unable to help you achieve the complex permalink structure, then you could try another plugin, or post another question and ask how to achieve the structure without using a 3rd-party plugin? Yes, it wouldn't be easy to remove the species base, but it's not impossible, either.
Mar 14, 2022 at 1:05 comment added user7459842 Nope its is not working . still same issue . :(
Mar 14, 2022 at 0:38 history bounty ended terminator
Mar 14, 2022 at 0:36 comment added user7459842 Ofcouse. I was doing it to accept is as answerayways because it answers my question .. It is problem of my complex permalink struture.. SO I have voted it up and accepted answer but I hope you will help me get the fix
Mar 14, 2022 at 0:33 vote accept user7459842
Mar 17, 2022 at 1:59
Mar 14, 2022 at 0:26 comment added Sally CJ If it works well, then I'd appreciate an upvote from you? And I don't know which "it"/code you've tried or are using now, but as for the (single) CPT permalink issue and with the 2nd snippet in my answer, try adding if ( false !== strpos( get_query_var( $var ), '/' ) ) { return $template; } right below the foreach ( array( 'shop', 'sales', 'services' ) as $var ) {.
Mar 13, 2022 at 18:38 comment added user7459842 Hey I am really sorry for the delayed response.. I tried it just now... it works well but it created issue on single post type .. for eg: for a single post with url like example.com/dogs/services/parent-service-1/child-parent-2/… This is supposed to use single-job_listing.php template but is using taxonomy-species.php
Mar 12, 2022 at 7:10 comment added Sally CJ So did it work?
Mar 9, 2022 at 22:53 comment added user7459842 thanks a lot .. I will implement this code and get back to you if any issues
Mar 9, 2022 at 2:05 history answered Sally CJ CC BY-SA 4.0