• 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

Viewing 1 replies (of 1 total)
  • This should return the permalink for that:

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

Viewing 1 replies (of 1 total)
  • The topic ‘is there a template tag to automatically link to posts page?’ is closed to new replies.