How to direct user after comment save

Use the filter comment_post_redirect: add_filter( ‘comment_post_redirect’, ‘comment_redirect’ ); function comment_redirect( $location ) { $location = ‘http://example.com/sample-page’; // or: // $location = get_page_link( page_ID ); // $location = get_page_link( get_page_by_path( ‘sample-page’ )->ID ) return $location; }

My WordPress website was hacked [closed]

It’s good that you’ve regained access to your website, but without any further action, you’ll get hacked again. These are steps to take, in order to clean, and secure your site: do not panic ( very important ) do not remove anything yourself install and activate WordFence Security plugin in Wordfence -> Options, select everything … Read more

Post thumbnails not working in my new install of WP 3.1 with Twenty Ten theme

The featured image meta box is enabled under following conditions: if ( current_theme_supports( ‘post-thumbnails’, $post_type ) && post_type_supports( $post_type, ‘thumbnail’ ) && ( ! is_multisite() || ( ( $mu_media_buttons = get_site_option( ‘mu_media_buttons’, array() ) ) && ! empty( $mu_media_buttons[‘image’] ) ) ) ) add_meta_box(‘postimagediv’, __(‘Featured Image’), ‘post_thumbnail_meta_box’, $post_type, ‘side’, ‘low’); So check that: nothing messes … Read more

Blog posts not displaying

From the “Settings” menu in the wordpress admin panel Select the “Reading” options and select your blog page for “Posts Page” from the dropdown beside it, see the screenshot here http://d.pr/i/h4nV Hope it will help

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)