Why can’t I see my attachment page information for an image?
It sounds like you have selected Media file instead of Attachment Page in the Attachment Display Settings:
It sounds like you have selected Media file instead of Attachment Page in the Attachment Display Settings:
Here is one I happen to use myself. The function returns an array consisting of an array of author ID’s, an array of author names and the number of authors. Place this code in functions.php – /** * Return an array of the number of posting authors, and their names and ID’s */ function get_author_data(){ … Read more
You’ll need to ensure that The Loop includes the_content(); See: http://codex.wordpress.org/The_Loop
Try this: <?php $description = get_post_meta( $post->ID, ‘page-description’, true ); ?> <div id=”page-title”> <?php if( $description !=” ) { ?> <p><?php echo $description; ?></p> <?php } ?>
The Genesis Framework is not for free, so I can’t inspect the code. But I can use Google or any other search engine and found something with custom post types. And as I see the comment // any wp_query() args, I guess you can pass the same arguemnts to the Genesis loop as to the … Read more
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.
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
WP_Query has a post_count property: codex. $recentPosts = new WP_Query($args); $count = $recentPosts->post_count;
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
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’ )