Wordpress - Custom Post Types URL

1

Wordpress Ads System

Post Categories and Sub-categories (States / Cities):

  • localhost / site / cities / sp / sorocaba (example)

Custom Post Types:

  • Coupons: localhost / site / coupons / postname
  • Ads: localhost / site / ads / postname
  • Enterprises: localhost / site / companies / postname

Scenario and doubt:

  • User joined
  • User is required to choose a city and state
  • User chooses SP / Jundiaí and is redirected to: link
  • User views everything on the page: ads, coupons, companies, Sorocaba banners.
  • User clicks on top menu: CUPONS
  • User redirected to link
  • Problem:

  • There the site / system does not know that it was in Sorocaba anymore.
  • What I needed:

    If the user selected a city, created a Session or Cookie or something else and was "saved" for the user to enter Coupons and the wordpress query took $ state $ city to do the filter there would be the ideal world !

    Client does not want to lose amiable url, without get and parameters in url ..

    Does anyone know how to solve it?

        
    asked by anonymous 05.06.2015 / 16:38

    0 answers