Changing the URL of pages to show the business category too

Discussion in 'GeoCraft WordPress Theme' started by travissichel, Apr 20, 2014.

  1. travissichel

    travissichel New Member

    Joined:
    Jan 13, 2014
    Messages:
    13
    Likes Received:
    0
    Ok so I found the solution to what I want in the link below, however confused to what file he edited does anyone have an idea? Thanks. :)

    http://stackoverflow.com/questions/...xonomy-parent-category-on-child-category-slug

    Basically I want an URL to a business (Happyfish) that is a seafood restaurant under the category structure of "resaurants>seafood", to look like this:
    • mywebsite.com/listcat/restaurants/seafood/happyfish/
    Currently the link looks like this:
    • mywebsite.com/listcat/happyfish/
     
  2. Nitesh

    Nitesh Support Staff

    Joined:
    Oct 19, 2012
    Messages:
    5,165
    Likes Received:
    160
    Hello,

    For this go to the
    geocrafttheme\library\controls\custom_post_type\listing_type.php
    and replace code given below as shown in the image.

    Code:
    "rewrite" => array('hierarchical' => true)) 
    rewrite.png

    Thanks & Regards
    Nitesh Raghuwanshi
     

Share This Page