WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Add hyperlink via slug in pages (3 posts)

  1. meereck
    Member
    Posted 4 years ago #

    hello,
    is it possible to create a hyperlink (normal <a href="...">mylink</a>) based on a page slug when editing a page?

    cheers
    Meereck

  2. S.K
    Member
    Posted 4 years ago #

    Yes. You can use the page slug as a relative URL such as "/page-slug/" within your blog/site (main domain), if your page permalink follows the format like http://yoursite.com/page-slug/.

    Otherwise use the whole page permalink which of course, is based on page slug.

    S.K

  3. meereck
    Member
    Posted 4 years ago #

    oh, you are right, I absolutely forgot that approach.
    thanks,
    M.

Topic Closed

This topic has been closed to new replies.

About this Topic