Pledge Form: Generate correct URL for the directory.

It's no longer a page, and instead uses the post type archive with a rewrite rule.
This commit is contained in:
Ian Dunn 2019-11-07 15:31:02 -08:00
parent 963dbd41e3
commit 93d2bafd34
No known key found for this signature in database
GPG key ID: 99B971B50343CBCB

View file

@ -26,7 +26,7 @@ function render_form_new() {
$errors = [];
$pledge = null;
$complete = false;
$directory_url = get_permalink( get_page_by_path( 'pledges' ) );
$directory_url = home_url( 'pledges' );
$view = 'form-pledge-new.php';
if ( 'Submit Pledge' === $action ) {