How do I make a echo
in the posts page URL when WordPress is set to display a page like Homepage and the posts on a specific page? For example:
Under Settings > Reading You can define a static page and a posts page. What I need is to know if there is a function that takes the posts page dynamically. Home
Example: echo pegue_a_pagina_de_posts();
. Home
Result: link
obs .: this was just an example. Of course this function does not exist :)
I'm developing a theme, so there is no other option. I need to dynamically select posts URL.