Title: Custom Template Problem
Last modified: August 20, 2016

---

# Custom Template Problem

 *  [digitalwerk](https://wordpress.org/support/users/digitalwerk/)
 * (@digitalwerk)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/custom-template-problem/)
 * Hey!
 * I got a Problem and i hope, that u guys can help me.
 * My current customer site uses multiple hierarchically ordered pages which contain
   a Custom Template. In this page template i added the functionallity to decide,
   which category of posts (via post_meta) will be shown under the normal page content.
   In other words you have a page with its content and under it multiple posts of
   a chosen category.
 * Now to the problem:
    I am in the following Site Hierarchy (Main Site -> SubSite-
   > SubSubSite) and have listed my posts from the category (eg.: Sub Sub Main Site
   Category) under the page content. When i now click on the Post Link (the_permalink)
   i am loosing the hierarchy and the link of my parent pages. The link of the page
   looks normally (/MainSite/SubSite/SubSubSite) after the click on a post in the
   page i get the following one … For example in a custom post -> eg. /slugofcustomposttype/
   postname.
 * I need the possibility to automatically change the link to:
    /MainSite/SubSite/
   SubSubSite/postname
 * In Addition i lose the correct path of my breadcrumb and the content of my sidebars
   and its content, which are chosen by its root menu point:
 * MainSite and its children -> Widget 1
    MainSite2 … -> Widget 2 MainSite3 … ->
   Widget 3
 * In other words is it possible to change the link of the permalink and dont loose
   my parent sites/pages?
 * Hope u guys can help me.
 * Thank u and greetings in advance!
 * Philipp
 * PS.: We normally do a lot of Typo3 Website, however this is my first one in WordPress…
   so please by patient ;).

The topic ‘Custom Template Problem’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [digitalwerk](https://wordpress.org/support/users/digitalwerk/)
 * Last activity: [13 years, 10 months ago](https://wordpress.org/support/topic/custom-template-problem/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
