0

I checked all subjects in forum about this but i didn't found way to resolve my problem. sorry for my english, i'm french.. :)

So.. i got a custom post listing ( with template listing pro ) there : http://easycowork.fr/bureau/easy-office-lille/

I created a custom post named service and i display all service associate on listing on the listing single page. When i click on a service, i display his data on the same page with a GET parameter ( the service id ) like this : http://easycowork.fr/bureau/easy-office-lille/?show_service=196

But i need the name of service instead of show_service=196 after the name of listing "easy-office-lille"

How can i do that ? I'm really lost in url rewriting

I use Custom post type UI plugin to create custom post, I added rewrite option to true, and Custom Rewrite Slug option to service and registered permalink but that didn't work.

Thanks for help !

4
  • how do you store which listing should be in the URL of each service?
    – Milo
    Jul 10, 2017 at 16:19
  • i'm not sure to understand your answer ( im french ), but.. my service is displaying on listing single page. i have associate each service with listing ( i got a front form to add service, i got a select to choose listing i want for the service ) so easy on single listing page to know which service is from the listing. when you are on listing page, you click on service's image and the page reload with $_GET parameter and i hide some listing data to display service's data. Sorry if is not your question :/
    – 1way
    Jul 10, 2017 at 21:34
  • Where is the association between listing and service stored? Is that post meta data? To generate a permalink for a service, you have to be able to get the name of the listing that it is associated to.
    – Milo
    Jul 11, 2017 at 0:03
  • the association is in service's custom field so post meta data yes, i register the name of listing. So i know the name of the listing because i'm on the listing page, and if i have to create new page for my service, i can know which listing is associate to, but i really don't how to do this
    – 1way
    Jul 11, 2017 at 10:53

1 Answer 1

0

Go through the Category base and Tag base title of Using Permalink url.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.