Source Code Modifications
Because I believe if Free as in Free Speech (and Free an in Free Food), Have to give credit where credit is due. This is a list of any changes to source code I made along with the ability to download the source.
To create the “Table of Contents” list on my sidebar, I use the plugin called SubPages which was created by Amanda Chappell. I modified it a bit to include page links as needed when moving about the navigation system. The original plugin may be found on WordPress.org’s Plugin Directory.
Changes I made:
- The title changes depending on where you are. It’s currently not working right (see below)
- When there’s pages nested below the current page, you’ll see the pages below the current structure
- When you’ve dug as deep as you can go, you’ll see the current level pages and there will be a line telling you you’re as deep as you can go
Please note that I’m new to PHP programming so it’s not the greatest. Any ideas to improve would be welcome. Here’s what I’d like to be able to do:
- Highlight the page your currently are on somehow (DONE! Used the CSS editor and the WordPress Codex to show me how)
- I would like to show the parent page title always. Using this current page as an example, I would like the menu to read “Copyright” instead of “Source Code Modifications” Here’s the code I’m using to request the parent’s page title (source):
$parent_title = get_the_title($post->post_parent); echo $parent_title;
The code doesn’t seem to want to behave. Once I can get that code to work, I intend to turn it into a link to the parent page
My modification can be downloaded as a 7-zip file: subpages.7z
