wp_query select if have comments

You might try this: add_filter( ‘posts_where’, ‘filter_where’ ); $query = new WP_Query($args); remove_filter( ‘posts_where’, ‘filter_where’ ); where function filter_where( $where=”” ) { $where .= ” AND comment_count > 0 “; return $where; } to get posts with comments.

I need to create a page or post hierarchy

If all you need is to show the hierarchy in the menu, choose Appearance->Menus and build your hierarchy there by using Custom Links. Use # for levels that don’t need to have a page, but use a URL when you get to the bottom level (a page that has content). You can then arrange them … Read more

unused post IDs

You can stop WP creating revisions by adding the following to your wp-config.php: define(‘WP_POST_REVISIONS’, false ); You can replace false with an integer if you just want to restrict the number a maximum number of revisions. If you check the plugin directory you’ll find several that will clean up old revisions, such as this one. … Read more

What is wrong with this wp_query?

You should be storing and comparing your time in 24 hour format: 00:00:00. array( ‘key’ => ‘event_end_time’, ‘value’ => date(‘G:i:s’), ‘compare’ => ‘>=’, ‘type’ => ‘TIME’ )

Cant retrieve $_POST inside page, just header

Were you ever able to sort this out? I’m having the same issue. Best I can tell, somewhere after the save_post fires the $_POST data for that post/form gets trashed. fwiw, what I’m considering doing is doing my validation and then using a post_meta as a proxy for $_POST. In other words, if validation fails … Read more

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