Forums

is there a template tag to automatically link to posts page? (2 posts)

  1. simplemedia
    Member
    Posted 2 years ago #

    Hello all,

    I am wondering if there is a template tag to link to a "relocated" blog/posts page. I am trying to use this in a theme that I intend to reuse on multiple sites, where on one site it might be /blog and on another it might be /news.

    Bloginfo('url') gives us a link to the homepage of the blog. Is there a bloginfo('posts') or equivalent? Thanks!

    sm

  2. MichaelH
    Volunteer
    Posted 2 years ago #

    This should return the permalink for that:

    <?php $posts_page = get_permalink(get_option('page_for_posts')); ?>

Topic Closed

This topic has been closed to new replies.

About this Topic