Multiple WordPress Pages

The easiest way would be to create a page template. You would assign all 50 pages to your page template, giving each page it’s own title. Any content you want to be different on each page could be put into the page itself. Anything that you want duplicated on all of the pages, keep in … Read more

Show custom posts with a specific “custom TAXONOMY slug” on startpage

For taxonomy superevent and term true: add_action(‘pre_get_posts’,’wpse57309_alter_front_page_query’); function wpse57309_alter_front_page_query( $query ){ if( $query->is_main_query() && is_front_page() ){ if( !$query->get(‘post_type’) ){ //post type is not set, the default will be an array of them: $query->set( ‘post_type’, array( ‘news’, ‘events’, ‘tv’ ) ); $query->set( ‘superevent’, ‘true’ ); } } }

custom post type tags

I use this function to display comma separated terms from a custom taxonomy: // Get Comma Seperated List of Custom Taxonomy // function the_custom_taxonomies($taxonomy) { global $post; $terms = get_the_terms($post->ID, $taxonomy); $counter = 0; if (!empty($terms)) { foreach ($terms as $term) { echo $term->name; if (++$counter < count($terms)) echo “, “; } } }

same comment list for two posts

You could use get_comments() instead. The code in this forum post gives an example of how you’d do that: <?php $recent_comments = get_comments( array(‘post_id’ => $newest_post_id,) ); foreach ($recent_comments as $comment) { ?> <?php $comment_id = get_comment($comment->comment_ID); $author = $comment_id->comment_author; $commentdate = $comment_id->comment_date; $content = $comment_id->comment_content; ?> <p><?php echo $author; echo $commentdate;?></p> <p><?php echo $content;?></p> … Read more