Add external page url to Wordpress PHP?

php

#1

Need some help here. I need to add an external page url to a wordpress theme. I don't want to use the menu option, as i just need to swap out the url, which currently points to an internal page.

Here's the code:

<a href="<?php echo esc_url(get_post_type_archive_link( 'give_forms' )); ?>" class="btn btn-dark btn-donate"><?php esc_html_e('donate now','huza') ?></a>

#2

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.