josepilove
Forum Replies Created
Viewing 6 replies - 1 through 6 (of 6 total)
-
Had the same problem and narrowed it down to Mailchimp. Fortunately I didn’t need it anymore and got rid of it.
I second this one…i’d love to be able to have this work with ACF.
Forum: Fixing WordPress
In reply to: Comment redirect back to originating page?oh right. yea, i think you need to get the ID of the page you are on and pass that into the get_permalink() function.
Forum: Fixing WordPress
In reply to: Comment redirect back to originating page?really? i took this and just manually added
<input type='hidden' name='redirect_to' value='<?php bloginfo('home')?>/blog'/>as HTML and it worked…Forum: Fixing WordPress
In reply to: Comment redirect back to originating page?at a glance i would say that the problem is that you are including the PHP tags again in the $fields array. try this.
<?php $fields = array( 'author' => '<p class="comment-form-author">' . ( $req ? '<span class="required">*</span>' : '' ) . '<input class="text" id="author" name="author" type="text" value="First name"' . esc_attr( $commenter['comment_author'] ) . '" size="30"' . $aria_req . ' /></p>', 'redirect_to' => '<input type="hidden" name="redirect_to" value="'.get_permalink().'"/>', );i figured it out. the comma was messing things up because i was also putting that field in the ‘from’ part of the email header.
Viewing 6 replies - 1 through 6 (of 6 total)