WordPress.org

Ready to get started?Download WordPress

Forums

get_permalink returns invalid string (1 post)

  1. jrodgers
    Member
    Posted 6 years ago #

    when i use get_permalink(57); the return value is

    http://www.server.com/index.php/%post_name%/57

    my custom permalink is
    /index.php/%post_name%/%post_id%
    so it looks like the %post_id% is being resolved but %post_name% is not

    may page links show as
    index.php/name-of-page

Topic Closed

This topic has been closed to new replies.

About this Topic