Tag Info

New answers tagged

0

Looks like I had to figure this one out myself. replace $comment_meta_args and $replies with global $wpdb; $comment_meta_args="SELECT * FROM `$wpdb->comments` WHERE `comment_approved` = 1 AND `comment_parent` = (". intval($parent_comment_id) .") AND `user_id` != 1 ORDER BY comment_date ASC LIMIT 3"; ...


0

My bad. Should have added a foreach for the replies as well. <?php $args = array( 'user_id' => $curauth->ID, 'number' => 5, 'status' => 'approve', 'parent' => 0 ); $comments = get_comments($args); if ( $comments ) { foreach($comments as $c){ echo '<ul ...


1

It's not recommended to use query_posts(), check for example this warning note in the Codex: This function isn't meant to be used by plugins or themes. As explained later, there are better, more performant options to alter the main query. query_posts() is overly simplistic and problematic way to modify main query of a page by replacing it with new ...


0

If two fields are named people[name], only the last value will be sent with the form. To be completely reliable, you'll need to use an id for each person you're collecting details on: <input name="people[0][name]"> <input name="people[0][email]"> <input name="people[1][name]"> <input name="people[1][email]"> ... Use an incrementing ...


1

You can use do_shortcode() echo do_shortcode($post_customs["project_items_".$i."_edit_proposal_item"][0]); More : http://codex.wordpress.org/Function_Reference/do_shortcode



Top 50 recent answers are included