QUESTION Tag to link to page X slug - Printable Version +- GetSimple Support Forum (http://get-simple.info/forums) +-- Forum: GetSimple (http://get-simple.info/forums/forumdisplay.php?fid=3) +--- Forum: General Questions and Problems (http://get-simple.info/forums/forumdisplay.php?fid=16) +--- Thread: QUESTION Tag to link to page X slug (/showthread.php?tid=13462) |
Tag to link to page X slug - islander - 2020-03-13 Maybe a silly question, but I have looked through the forum and wiki, and cant seem to find it. I would like to add a link in the footer template to a page that is not listed in a menu. Is there a tag similar to <?php get_page_slug(); ?> where you include the slug of the page rather than adding the full url to a link. Sorry if I am phrasing this all wrong. What I would like to do is: <a href="<?php get_page_url('My_Slug'); ?>" title="<?php get_page_title('My_Slug'); ?>"> </a> Which would output something like: <a href="https://mysite/My_Cool_Page" title="My Cool Page Title"> </a> RE: Tag to link to page X slug - Carlos - 2020-03-13 PHP Code: <?php $mySlug = 'my-slug'; ?> RE: Tag to link to page X slug - islander - 2020-03-13 (2020-03-13, 01:48:09)Carlos Wrote: I think that will work for me. Thank you Carlos for such a prompt reply |