• Hello All!

    I am creating a custom post type called gallery items.

    I have created a PAGE on my site with some advanced js that uses ajax to grab all ‘gallery items’ in via XML and allow various sorting, searching and browsing.

    Each time a new gallery item is brought up, I change the hash of the page to the slug of the custom post (www.test.com/mygallery#specific-gallery-item. The js also reads the hash and will load the appropriate item.

    For search optimization reasons and other reasons, I want the permalink of the custom post type to fake going to the same url structure needed for the javascript.

    I have tried the rewrite, EP_MASK and a number of other things to change the url from being http://www.test.com/gallery_item/my-gallery-item to http://www.test.com/gallery#my-gallery-item – but it either does not work or causes problems in other places.

    I feel i may have to go higher than the place like .htaccess, but I am not familiar with coding .htaccess well enough for that kind of rewrite.

    Any help would be awesome.

  • The topic ‘Custom Post Type with Custom Permalink to page with hash value’ is closed to new replies.