open
21.08.2022.

How to use the get page title and get page link functions

If you use the get_the_title and get_page_link functions You can change the permalink and title without causing a link error, as the parameters are generated based on the page ID.

Full example:

<a title=”<?php echo get_the_title(8);?>” href=”<?php echo get_page_link(8); ?>”><?php echo get_the_title(8);?></a>
Copy to Clipboard

Result
Data protection declaration


Related posts

Got a question? Is something not working? Write and I'll answer!

Leave a Reply

Your email address will not be published. Required fields are marked *