MichaelH
Forum Replies Created
-
Forum: Plugins
In reply to: Kind of related posts but a bit differentYou might then want to consider some kind of related posts type plugin that doesn’t require coding.
Example:
http://wordpress.org/extend/plugins/yet-another-related-posts-plugin/Forum: Plugins
In reply to: Kind of related posts but a bit differentCan offer you this as an example you could play with:
for use in the loop, list all posts with tags contained on current post, excluding the current post
<?php $tags = wp_get_post_tags($post->ID); if ($tags) { $term_ids=array(); foreach($tags as $tag) { array_push($term_ids,$term->term_id); } $args=array( 'tag__in' => $term_ids, 'post__not_in' => array($post->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 Related 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: Query posts by tag and custom fieldChange that line
'meta_value' => '',to something like
'meta_value' => 'specific value you want here',Forum: Fixing WordPress
In reply to: Importing WordPress.com Blog into WordPress Self Host BlogTools->Export at wordpress.com
Tools->Import->Wordpress at your new site.
Forum: Installing WordPress
In reply to: What version of WP officially supports php 5.3.2?You should be okay moving to that server.
WordPress only specifies the minimum PHP requirement (which for 3.0.1 is PHP 4.3 or greater – in the Spring 2011 the minimum will be PHP 5.2)
Forum: Fixing WordPress
In reply to: Auhors in MenuHave this in my notes but not sure I’ve ever tested it:
Easy way to get all the authors for posts in a certain category?
$post_ids = implode(',', get_objects_in_term($term_id, 'category')); $authors = $wpdb->get_results(" SELECT DISTINCT * FROM $wpdb->users u JOIN $wpdb->posts p ON (p.author_id = u.ID) WHERE p.ID IN ('$post_ids') ");Forum: Plugins
In reply to: MySQL plugin to show table on siteIf the table (my own members list) is in the same database as your other WordPress tables it would be easy to use wpdb to access and display that data.
Forum: Themes and Templates
In reply to: Categories not sychronizedThen try deactivating all plugins to see if that solves the problem. If not, then switch to the TwentyTen theme and see if that works.
Display all posts in alpha order
<?php $args=array( 'orderby' => 'title', 'order' => 'ASC', 'posts_per_page'=>-1, 'caller_get_posts'=>1 ); $my_query = new WP_Query($args); if( $my_query->have_posts() ) { echo 'Alphabetic index of all ' . count($my_query->posts) . ' posts'; while ($my_query->have_posts()) : $my_query->the_post(); $this_char = strtoupper(substr($post->post_title,0,1)); if ($this_char != $last_char) { $last_char = $this_char; echo '<h2>'.$last_char.'</h2>'; } ?> <p><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></p> <?php endwhile; } //if ($my_query) wp_reset_query(); // Restore global post data stomped by the_post(). ?>Forum: Plugins
In reply to: Looking for a category sticky functionNot positive, but this plugin might do that: http://wordpress.org/extend/plugins/astickypostorderer/
Forum: Themes and Templates
In reply to: How to sort terms in custom taxonomies?Not real downside, but you could look into making it a function and just pass the taxonomy to the function–that way you’d only have 1 line in your template and the function in your theme’s functions.php.
I’ll mark this resolved.
Forum: Fixing WordPress
In reply to: Moving WordPress From Yahoo to Bluehost…See Moving WordPress. Essentially, backup your WordPress files (use an FTP program to copy from Yahoo server to your local machine), and backup your database (if necessary install the WP-DB-Backup plugin).
Then restore your database to BlueHost database using phpMyAdmin and upload the files via FTP to your Bluehost web-root folder (probably your public_html folder0, fix the wp-config.php to point to the new database (leave the $table_prefix the same).
Related:
WordPress BackupsForum: Hacks
In reply to: How to show recent post on external site?See this plugin: http://wordpress.org/extend/plugins/wp-no-category-base/
Forum: Fixing WordPress
In reply to: I changed my Domain NameMight check with your host to see if they will help.