MichaelH
Forum Replies Created
-
Forum: Installing WordPress
In reply to: Trial VersionInstall WordPress locally–XAMPP is a good environment http://www.apachefriends.org/en/xampp.html
Forum: Plugins
In reply to: set my own variablesWhy not use something like:
$car_id = get_cat_ID('car');Forum: Plugins
In reply to: extending user profile on WP 3.0.1Not seeing your problem, at least with Cimy User Extra Fields.
Maybe another plugin is causing the problem.
Forum: Themes and Templates
In reply to: Need advice on renaming 'Register'Probably best that you gather info on WordPress filters and look at plugins that allow you to skin your own login page.
Plugin_API/Filter_Reference
http://wordpress.org/extend/plugins/custom-login/
http://wordpress.org/extend/plugins/bm-custom-login/
http://wordpress.org/extend/plugins/wp-custom-login-page/
http://www.google.com/search?q=wordpress+plugincustomize+loginForum: Requests and Feedback
In reply to: Codex Single Quote ProblemMight check trac to see what’s going on there.
Forum: Themes and Templates
In reply to: Need advice on renaming 'Register'See if this helps:
http://wordpress.org/support/topic/changing-meta-widget-register-to-signup
Forum: Plugins
In reply to: Ability to switch Page versions, not just version historyCreate two Pages, then assuming those are page id 5 and 108 something in a Page Template like:
<?php //not sure how out of stock is determined... if ($out_of_stock == 'yes') { $use_page = '5'; } else { $use_page = '108'; } $args=array( 'page_id' => $use_page, 'post_type' => 'page', '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 the_content(); endwhile; } wp_reset_query(); // Restore global post data stomped by the_post(). ?>Forum: Plugins
In reply to: Post type pages: how do they work?http://codex.wordpress.org/Pages#A_Page_of_Posts_for_a_Custom_Post_Type
Note that with 3.1 there will be better handling of custom posts.
Forum: Fixing WordPress
In reply to: Sort archives alphabetically grouped by starting letterJust change the query args
$args=array( 'post_type' => 'your custom post type here', 'orderby' => 'title', 'order' => 'ASC', 'posts_per_page'=>-1, 'caller_get_posts'=>1 );Forum: Plugins
In reply to: the_category() wont work!Probably should use get_the_category which returns all the categories on a post so you need to pick which ‘category’ to use.
<?php $cats = get_the_category(); if ($cats) { foreach($cats as $cat) { echo $cat->slug .' or '. $cat->cat_name; } //foreach ($cats //or this which is the first category found echo $cats[0]->slug; } ?>Forum: Fixing WordPress
In reply to: Loop only displaying one post when there should be two.At the least,
showpostsshould beposts_per_pageForum: Themes and Templates
In reply to: How to show content from pages in my theme?<?php $mypage = = 237; //put your page id here $args=array( 'page_id' => $mypage, 'post_type' => 'page', '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 the_content(); endwhile; } wp_reset_query(); // Restore global post data stomped by the_post(). ?>Also see:
query_posts()
Stepping Into Template Tags
Stepping Into Templates
Template HierarchyForum: Fixing WordPress
In reply to: Query posts by tag and custom fieldNot sure when the value would be different but:
$value = 'value1'; . . . 'meta_value' => $value,Forum: Themes and Templates
In reply to: 'is_page' doesn't work for the blog section?You might have to resort to other conditionals like
if (! is_page()) {or
is_archiveForum: Requests and Feedback
In reply to: Codex Single Quote ProblemNot much of a solution but did try to fix it a little
http://codex.wordpress.org/index.php?title=Function_Reference%2Fwp_dropdown_pages&diff=93907&oldid=93869Thanks.