MichaelH
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Display only categories in sidebar from current month postsDidn’t test this so review query_posts time parameters
<?php $cat_array = array(); $cur_year = date('Y'); $cur_month = date('m'); $args=array( 'year' => $year, 'monthnum' => $month, 'post_type' => 'post', 'post_status' => 'publish', 'posts_per_page' => -1, 'caller_get_posts'=> 1 ); $my_query = null; $my_query = new WP_Query($args); if( $my_query->have_posts() ) { while ($my_query->have_posts()) : $my_query->the_post(); $cat_args=array('orderby' => 'none'); $cats = wp_get_post_terms( $post->ID , 'category', $cat_args); foreach($cats as $cat) { $cat_array[$cat->term_id] = $cat->term_id; } endwhile; } if ($cat_array) { echo '<p>List of categories used this month</p>'; foreach($cat_array as $cat) { $category = get_term_by('ID',$cat, 'category'); echo '<p><a href="' . esc_attr(get_term_link($category, 'category')) . '" title="' . sprintf( __( "View all posts in %s" ), $category->name ) . '" ' . '>' . $category->name.'</a><p> '; } } wp_reset_query(); // Restore global post data stomped by the_post(). ?>Forum: Fixing WordPress
In reply to: Invisible/hidden category for specific postsEssentially need to use a conditional tag to do that. The Loop article has some examples that apply, but in your loop it would be something like
<?php //assumes category id 3 is your non-commerical category if ( ! in_category('3') ) { the_category(); } ?>Forum: Themes and Templates
In reply to: Linking to generic archives pageWhy not use the template tag, wp_get_archives()?
Forum: Fixing WordPress
In reply to: Older Entries on Page of PostsLikely would need two query loops. The first loop would display your newest posts and the 2nd query loop to display the oldest posts.
Forum: Fixing WordPress
In reply to: PHP dynamic linkingWould a plugin like Page Links To work?
Forum: Everything else WordPress
In reply to: Which platform is viable solution for me ?That’s something WordPress could help you with.
Might look at:
http://wordpress.org/extend/plugins/tags/vblog
http://wordpress.org/tags/vblog
http://www.google.com/search?q=wordpress+as+vblogForum: Fixing WordPress
In reply to: My posts display on "index" how do I make display on "blogs page?"Use the Static Front page feature that is found in Administration > Settings > Reading
Forum: Themes and Templates
In reply to: Static front page helpUse the Static Front page feature available via Administration > Settings > Reading and get a plugin that allows you to display posts such as:
* http://wordpress.org/extend/plugins/postlists/
* http://wordpress.org/extend/plugins/list-category-posts/ (uses shortcode)
* http://wordpress.org/extend/plugins/simple-posts-list/ (uses shortcode}
* http://wordpress.org/extend/plugins/nurelm-get-posts/ (uses shortcode)
* http://wordpress.org/extend/plugins/sb-child-list/ (display pages either parent or child and has shortcode)Forum: Themes and Templates
In reply to: Create a custom formMight see how a plugin works for you:
http://wordpress.org/extend/plugins/custom-field-template/Otherwise look in to how metaboxes are used:
http://www.google.com/search?q=wordpress+add+metaboxesForum: Themes and Templates
In reply to: 'is_page' doesn't work for the blog section?According to Conditional Tags
is_home()
When the main blog page is being displayed. This is the page which is showing the time based blog content of your site, so if you’ve set a static Page for the Front Page (see below), then this will only be true on the Page which you set as the “Posts page” in Administration > Settings > Reading.Yep, that’s what that code does.
Forum: Fixing WordPress
In reply to: Where to use template tags wp_login_url & wp_logout_urlMight consider this plugin:
http://wordpress.org/extend/plugins/peters-login-redirect/Forum: Installing WordPress
In reply to: What version of WP officially supports php 5.3.2?Well WordPress seems to run on sites using 5.3.2 — such as http://www.evilzenscientist.com/
http://sivel.net/2010/07/wordpress-metric-comparison-of-2-9-2-and-3-0/Maybe someone else can add some other comment here.
Forum: Installing WordPress
In reply to: What version of WP officially supports php 5.3.2?Don’t know if that really exists. But if you are getting errors with 5.3 you might want to report that to trac.
Forum: Installing WordPress
In reply to: What version of WP officially supports php 5.3.2?Hmm, maybe you can make more sense of this than I can: