Creating A Link In single.php That Goes To Post’s Parent Section Page
-
Hello Archetyped, Thank you for creating Cornerstone it really expands the capability of WordPress to a website structure that I have been searching for. Well done!
I am a newbie to WordPress and PHP so I am fumbling my way around as I learn.
I would like to create a link at the bottom of each post that takes the reader back to the post’s parent cornerstone section (page). Would it be possible to put something in the Single Post template (single.php) file?As an example if there were pages pets:dogs and a post titled “pugs_snore” in section “dogs”. Could some code automatically create some text “Return to dogs” and link to the “dogs” page at the bottom of the “pugs_snore” post?
I see some functions called “cnr_get_featured”, “get_path”, and “get_parents”. Would any of these work?
Thanks, Tim
- The topic ‘Creating A Link In single.php That Goes To Post’s Parent Section Page’ is closed to new replies.