edit_post_link sometimes works (3 posts)

  1. kri
    Posted 9 years ago #

    I just recently figured out that template tags such as edit_post_link - tags that show certain things when you are logged in - only show under certain parameters.

    1. You must be using permalinks for your blog.
    2. You must use the correct address for the "Edit" or "Logged in as.." to show. It must match the URL in some form that you put in your General Options. This means that if you put http://yourdomain.com, if you use http://www.yourdomain.com to view your site, the links won't show. You must use http://yourdomain.com, without the www

    This has been the case with an old 1.5 blog that I update, as well as two 2.0.2 blogs.

  2. 1mil
    Posted 8 years ago #

    Fix user session problem with alternate install location

  3. blaisefreeman
    Posted 8 years ago #

    I have also run into this problem. The best way to get around the second issue you've raised is to use <?php bloginfo('url'); ?> on all of your links.

Topic Closed

This topic has been closed to new replies.

About this Topic