I'm building a custom function for breadcrumbs and I need to retrieve the permalink value for the is_home() function.
I went to 'Settings > Reading' and set a 'static front page' and chose my 'posts page'.
is_home() is working as expected, returning the page name for my 'posts page' which was manually set up above.
I just need to know how to retrieve the url or permalink of the is_home() function?
btw: bloginfo(url) and bloginfo(siteurl) are both returning the URL of the static homepage. Can't seem to figure out how to return the value of the posts page?
I greatly appreciate your help.
Use the home_url() function:
home_url() is returning the URL of the static homepage (ie: www.xxxx.com)
looking to retrieve my 'posts page' url which is: www.xxxx.com/blog
Here you go:
Awesome. Just figured it out. Thank you brother!