I love Get Simple. Besides it being simple, the flat file structure makes it super fast. This post is about a parents permalinks tweak to help get a more consistent permalink structure.

Get Simple only allows up to 2 levels of children to be shown properly on a permalink. This can cause issues with Google webmaster tools and other SEO efforts. For instance, I was getting far too many 404 error alerts than I should have been getting.

In order to combat this we use the i18n plugin that allows for more rich navigation. The custom permalink structure /%parents%/%slug%/ will allow more levels of children to be shown in the URL. Unfortunately, this permalink structure breaks News Manager Updated, a good blogging solution for Get Simple.

If we patch a core file for Get Simple, we can enjoy both the functionality of the parents tag as well as the intended function of News Manager Updated.

Edit admin/inc/basic.php, and find the following line:

$plink = str_replace('%parent%/', $parent, $PERMALINK);

You will see this line near the end of function find_url. Replace this line with the following:

$plink = str_replace('%parent%/', $parent, str_replace('%parents%', '%parent%', $PERMALINK));

I love Get Simple but not sure if it will ever go beyond a fun personal project. Let me know if you want to see more on this CMS.

In the meantime, check out the initial WordPress guides if you’ve missed those.

Pin It on Pinterest