New answers tagged

0

It was about calling the fields value containers which are arrays, so: get_comment_author() should change to something like this: $commenter['comment_author']


0

This notice comes because object $comments is null. So the have_comments() must wrap all the thing to be sure there are comments before using any property. in your case : <?php if ( have_comments() ) : /* the code */ endif; ?>


0

Insert Data in Custom Post From Front End if ( 'POST' == $_SERVER['REQUEST_METHOD'] && !empty( $_POST['action'] ) && $_POST['action'] == "product") { $title = $_POST['title']; $post_type = 'product'; //the array of arguements to be inserted with wp_insert_post $front_post = array( 'post_title' => $title, '...



Top 50 recent answers are included