MichaelH
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Displaying certain postsOkay then this plugin:
http://wordpress.org/extend/plugins/simply-exclude/Forum: Fixing WordPress
In reply to: Displaying certain postsSee some examples in The Loop article.
Forum: Fixing WordPress
In reply to: Custom "Add User" FieldExtending user profile:
* http://wordpress.org/extend/plugins/cimy-user-extra-fields
* http://wordpress.org/extend/plugins/extended-profile
* http://wordpress.org/extend/plugins/user-photo
* http://wordpress.org/extend/plugins/register-plus
* http://blog.ftwr.co.uk/archives/2009/07/19/adding-extra- user-meta-fields/
* http://justintadlock.com/archives/2009/09/10/adding-and-using-custom-user-profile-fieldsForum: Fixing WordPress
In reply to: I changed my Domain NameConsider using phpMyAdmin to make sure your
wp_optionstable has the correct values insiteurlandhome.siteurlis your WordPress address (URL) andhomeis your Site Address (URL).And, some other info:
http://www.tamba2.org.uk/wordpress/site-url/Once you can login to WordPress also look to use this plugin to fix any other references to the old domain… http://wordpress.org/extend/plugins/search-and-replace/
Forum: Fixing WordPress
In reply to: Updating very old versionsShould be able to follow directions in Upgrading WordPress or Upgrading WordPress Extended. I just upgraded a 2.0.5 site to 3.0.1 and it worked fine. Backup your database and files before attempting.
Forum: Themes and Templates
In reply to: How to sort terms in custom taxonomies?What about an
ifstatement?if ($terms) { foreach ($terms as $term) { echo $term->slug; } }Not sure about the URL question.
Forum: Fixing WordPress
In reply to: Query posts by tag and custom fieldShould I try to query posts by the artist custom field in the Catalog section?
Sounds like the way to go.
Forum: Fixing WordPress
In reply to: Query posts by tag and custom field(the artist name is a custom field BTW in Catalog)
How are you attaching a custom field to a category? Custom fields are attached to posts, not categories.
Forum: Fixing WordPress
In reply to: Show latest posts by all authorsOne example
<?php //displays all users with their avatar and one post (title) $blogusers = get_users_of_blog(); if ($blogusers) { foreach ($blogusers as $bloguser) { $user = get_userdata($bloguser->user_id); echo '<p>User ID ' . $user->ID . ' ' . $user->user_firstname . ' ' . $user->user_lastname . '</p>'; echo get_avatar( $user->ID, 46 ); $args=array( 'author' => $user->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 for ' . user->user_firstname . ' ' . $user->user_lastname; 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: Query posts by tag and custom fieldYeah, because it really didn’t make sense–you said “I want the tag= to be a custom field key”. You want to query posts with a tag derived from a custom field, but the custom field is attached to a post.
Forum: Themes and Templates
In reply to: How to sort terms in custom taxonomies?In the foreach put something like:
echo '<a href="' . esc_attr(get_term_link($term, $taxonomy)) . '" title="' . sprintf( __( "View all posts in %s" ), $term->name ) . '" ' . '>' . $term->name.'</a> ';Forum: Fixing WordPress
In reply to: no blog navigation on static pagesDesignate that as your Template when writing the page.
See: Page Template
Forum: Fixing WordPress
In reply to: Should I use a page or a category?That plugin essentially allows you to put html in a category description so suggesting you enter your html stuff in the category description, then you don’t need to code specific text for each category.
Forum: Fixing WordPress
In reply to: Should I use a page or a category?Instead of having a category template for each category, I’d probably go with one category template and code it accordingly.
Of course, if you used something like http://wordpress.org/extend/plugins/allow-html-in-category-descriptions/ you could have just one category template and code it to display the category description which would contain your text/html for each category.
What about using the WordPress Export and Import processes to do that?
Administration > Tools > Export
Administration > Tools > Import