0.0034161 сек
Очень медленно

Gets a permanent link to the entry, for later use in PHP.

Does not display the link on the screen, but returns it into a variable.

Can be used outside of the WordPress Loop, for that you need to specify the first parameter $id — the ID of the post whose link you want to get.

Gets the URL for any post type, including permanent pages and new post types, created.

If you don’t specify the ID parameter and use this function outside of the WordPress Loop on archive pages (categories, archive by date, archive by author, etc.), the function will return a link to the last article displayed in the Current Page Loop, rather than a link to the current page.

Based on: get_post_permalink(), get_attachment_link(), get_page_link()


Подпишитесь на новости

Никакого спама, только полезные материалы и новости.