WordPress.org

Support

Support » How-To and Troubleshooting » How to Get WordPress Blog URL

How to Get WordPress Blog URL

Viewing 1 replies (of 1 total)
  • I think this will do what you want:

    <?php $postsPageId = get_option('page_for_posts');
    $url_parameter = ( $postsPageId ) ? '?p=' . $postsPageId : '';
    $url = get_home_url('/') . $url_parameter; ?>
    <a href="<?php echo $url; ?>">Our Blog</a>
Viewing 1 replies (of 1 total)
  • The topic ‘How to Get WordPress Blog URL’ is closed to new replies.