Forums

Get current page id, title, url, etc (2 posts)

  1. barberjnhs
    Member
    Posted 9 months ago #

    I am trying to add a mail this page sharing link and want to include some info from the page.
    In pseudo code is this possible

    <a href="mailto:?subject=".CURRENT_BLOG_NAME." ".CURRENT_PAGE_TITLE."&body="intro%20text%20".WP_PLUGIN_URL.$_SERVER['REQUEST_URI'].">Mail to a friend</a>

    Where CURRENT_BLOG_NAME is ???
    and CURRENT_PAGE_TITLE is ???

    WP_PLUGIN_URL.$_SERVER['REQUEST_URI'] does get me the path to the current page.

  2. peredur
    Member
    Posted 9 months ago #

    Does this help?

    cheers

    PAE

Reply

You must log in to post.

About this Topic

Tags