What’s the wordpress / php hook to link to the base path of the wordpress installation? I want to be able to link to the home page of the wordpress blog, regardless of which directory the theme is installed in.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
echo '<a href="' . get_settings('siteurl') . '/wp-admin/index.php">admin</a>';would give you (as an example)
<a href="http://me.com/blog/wp-admin/index.php">admin</a>and
<a href="<?php bloginfo('url'); ?>">would give you
<a href="http://me.com/blog/index.php">