WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] if I know $post_ID how can I get the permanent link of this post (3 posts)

  1. storyday
    Member
    Posted 7 years ago #

    if I know $post_ID how can I get the permanent link of this post
    because in my plugin I need to know the permanent link to fetch that URI when I post or modified a post.
    thanks

  2. Kafkaesqui

    Posted 7 years ago #

    Use something like:

    $post_url = get_permalink($post_ID);

  3. storyday
    Member
    Posted 7 years ago #

    thank you very much

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags