relevanssi_the_permalink()

relevanssi_the_permalink( int|WP_Post $post )

This function prints out the permalink for the current post within the Loop.

Source: /lib/utils.php

Parameters

$post
(int | WP_Post) The post ID or the post object. Default values is the global $post.

Returns

Nothing; the function echoes out the permalink (with esc_url() escaping). If you need the function to return the permalink, use relevanssi_get_permalink().

Usage

This function prints out the permalink for the current post. In practice, this function calls relevanssi_get_permalink(). That function, in turn, calls get_permalink() to get the permalink and then applies the relevanssi_permalink filter hook to add Relevanssi features to the link.

These features include the extra parameter needed for in-document highlighting and click tracking.