Scott Chandler
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Blog’s main page in domain.com/blog – not domain.com/blog/Bumping, I would also like to know this.
Forum: Fixing WordPress
In reply to: Comment redirect back to originating page?But wouldn’t <?php bloginfo(‘home’)?> just bring you back to the main page of the blog? I’m looking for something that will redirect the commenter back to whatever page they were visiting, such as archive, search, tag etc.
Forum: Fixing WordPress
In reply to: Comment redirect back to originating page?Thanks! The PHP works now, but not that tag as a way of redirecting. Will keep looking.
Forum: Fixing WordPress
In reply to: Comment redirect back to originating page?I’ve seen various solutions that use php, but when I implement them it will redirect to something like “http://scottchandler.ca/research/wp-comments-post.php?phpget_permalink;?#comment-29”
Is there something about how I’m writing the code? Here’s what I have for the comment form:
<?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="<?php get_permalink(); ?>"/>', ); $new_defaults=array('title_reply'=>'', 'fields'=>$fields, 'comment_notes_after' => '', 'comment_field' => '<p class="comment-form-comment"><label for="comment">' . _x( '', 'noun' ) . '</label><input id="comment" name="comment" value="A quick note." aria-required="true"></input</p>', 'label_submit' => __( 'Submit' ), 'comment_notes_before' => '', ); comment_form($new_defaults); ?>Forum: Fixing WordPress
In reply to: Comment redirect back to originating page?Thanks, but this takes the user to a blank page with the URL http://scottchandler.ca/research/wp-comments-post.php?phpthe_permalink?#comment-21
Forum: Fixing WordPress
In reply to: Comment redirect back to originating page?Bump? I’ve gone through the support forums and all the suggestions for this seem to use the old pre-Wordpress 3 comments implementation and they don’t work anymore . I’ve found the redirect_to tag that I can add to a hidden field, but I don’t know how to get the url of whatever page the user is currently viewing.
Forum: Fixing WordPress
In reply to: Comments on main page/archives/tagsAlchymyth, it worked! Thanks so much. Everything looks like crap, but the comments are there so I can work with it. Thanks again.
Forum: Fixing WordPress
In reply to: Comments on main page/archives/tagsI’ll look into this alchymyth. Thanks. I’m new to wordpress and I’m unfamiliar with PHP so I’ll try and report back if this fixes it.
Forum: Fixing WordPress
In reply to: Comments on main page/archives/tagsThere was a plugin I tried, but I just deactivated it and still nothing. Thanks for these suggestions, by the way.
Forum: Fixing WordPress
In reply to: Comments on main page/archives/tagsYep.
Forum: Fixing WordPress
In reply to: Next/Prev Month link in archive pages?I am also looking for a solution to this.