MichaelH
Forum Replies Created
-
Forum: Plugins
In reply to: WordPress plugin for A-Z Categories pageSo put that code in a template or use something like http://wordpress.org/extend/plugins/sitemap-generator/
Related:
Stepping Into Template Tags
Stepping Into Templates
Template HierarchyForum: Installing WordPress
In reply to: Trial VersionOn my xampp install, the MySQL database is on ‘localhost’.
http://www.google.com/search?q=installing+xampp+to+run+wordpress
Forum: Installing WordPress
In reply to: Trial VersionIf you host doesn’t offer a 1-click install of WordPress then think about using http://wordpress.com to see how WordPress works.
Forum: Plugins
In reply to: WordPress plugin for A-Z Categories pageMight be an example here you can use:
http://wordpress.org/support/topic/switching-navigation-menu?replies=2Forum: Fixing WordPress
In reply to: Switching Navigation MenuDon’t know of the javascript non-requrement but might look at http://wordpress.org/extend/plugins/tabbed-widgets/
Also look at Otto’s PHP Code Widget and put these two sets of code in separate widgets.
<?php //get categories then display all posts in each term $taxonomy = 'category';// e.g. post_tag, category $param_type = 'category__in'; // e.g. tag__in, category__in $term_args=array( 'orderby' => 'name', 'order' => 'ASC' ); $terms = get_terms($taxonomy,$term_args); if ($terms) { foreach( $terms as $term ) { $args=array( "$param_type" => array($term->term_id), '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() ) { echo 'List of Posts in '.$taxonomy .' '.$term->name; while ($my_query->have_posts()) : $my_query->the_post(); ?> <p><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></p> <?php endwhile; } } } wp_reset_query(); // Restore global post data stomped by the_post(). ?><?php //alpha list of posts $args=array( 'order' => 'ASC', 'orderby' => 'title', '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(); ?> <p><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></p> <?php endwhile; } wp_reset_query(); // Restore global post data stomped by the_post(). ?>Forum: Fixing WordPress
In reply to: View Custom Post Types as a List?That is what I’m saying. The example I cited does paginate when used with the Twenty Ten theme but here’s another example that might fit your need:
http://wordpress.org/support/topic/taxonomy-pagination-1?replies=20#post-1750529Forum: Fixing WordPress
In reply to: Loop only displaying one post when there should be two.Then paste the COMPLETE template in a pastebin such as wordpress.pastebin.com and report the link back here–maybe someone can spot the problem.
Forum: Fixing WordPress
In reply to: View Custom Post Types as a List?You would make that as a Page Template.
See Page Template
Forum: Plugins
In reply to: Taxonomy PaginationWill give this one last shot–this works as a Page Template and shows using both custom post types (e.g. book) and custom taxonomy (e.g. genre=mystery)
<?php /* Template Name: CustomTax */ get_header(); ?> <div id="content" class="narrowcolumn"> <?php $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; $post_per_page = 1; // -1 shows all posts $do_not_show_stickies = 1; // 0 to show stickies $args=array( 'genre' => 'mystery', 'post_type' => 'book', 'paged' => $paged, 'posts_per_page' => $post_per_page ); $temp = $wp_query; // assign orginal query to temp variable for later use $wp_query = null; $wp_query = new WP_Query($args); if( have_posts() ) : while ($wp_query->have_posts()) : $wp_query->the_post(); ?> <div <?php post_class() ?> id="post-<?php the_ID(); ?>"> <h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2> <small><?php the_time('F jS, Y') ?> <!-- by <?php the_author() ?> --></small> <div class="entry"> <?php the_content('Read the rest of this entry »'); ?> </div> <p class="postmetadata"><?php the_tags('Tags: ', ', ', '<br />'); ?> Posted in <?php the_category(', ') ?> | <?php edit_post_link('Edit', '', ' | '); ?> <?php comments_popup_link('No Comments ', '1 Comment ', '% Comments '); ?></p> </div> <?php endwhile; ?> <div class="navigation"> <div class="alignleft"><?php next_posts_link('< Older Entries') ?></div> <div class="alignright"><?php previous_posts_link('Newer Entries >') ?></div> </div> <?php else : ?> <h2 class="center">Not Found</h2> <p class="center">Sorry, but you are looking for something that isn't here.</p> <?php get_search_form(); ?> <?php endif; $wp_query = $temp; //reset back to original query ?> </div> <?php get_sidebar(); ?> <?php get_footer(); ?>Also see: http://codex.wordpress.org/Template_Tags/query_posts#Preserving_the_Original_Query_.28Pagination_etc..29
Good Luck.
Forum: Fixing WordPress
In reply to: Login for MembersForum: Plugins
In reply to: Movie DatabaseWhy not just create a post for each movie? Or use Custom Post Types <–plugins such as http://wordpress.org/extend/plugins/custom-post-type-ui/ can help with that.
Forum: Fixing WordPress
In reply to: Loop only displaying one post when there should be two.Haven’t heard that being a bug. Maybe a plugin causing the problem?
Forum: Themes and Templates
In reply to: sticky on page of postsWhat did NOT work. Paste your complete Page Template in a pastebin such as wordpress.pastebin.com and report the link back here and maybe someone can spot the problem.
Don’t think that’s in Codex.
Forum: Plugins
In reply to: set my own variableshttp://www.google.com/search?q=php+pass+values+to+functions
Also can look at WordPress builtin functions (template tags) and see how that is accomplished. Further reading on that:
http://codex.wordpress.org/How_to_Pass_Tag_ParametersForum: Fixing WordPress
In reply to: View Custom Post Types as a List?http://codex.wordpress.org/Pages#A_Page_of_Posts_for_a_Custom_Post_Type
Note: Version 3.1 will have some other capabilities for custom post types.