MichaelH
Forum Replies Created
-
Forum: Themes and Templates
In reply to: Basic help: how to show blogtitles on home?That should show all posts. That echo statement is not necessary.
An example of using template tag, the_time():
<p><?php the_time('m.d.y') ?> <a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></p>Also see query_posts()
Forum: Fixing WordPress
In reply to: Restoring Database – Different Table Names?Probably just be easier to restore your database and use the same prefix as the old install — in your wp-config.php set
$table_prefix = 'wp_xxxxxx_';If you still want to change prefix:
http://www.google.com/search?q=wordpress+how+to+change+prefixForum: Fixing WordPress
In reply to: Transfer Old Posts to New Custom Post TypeMight look at http://wordpress.org/extend/plugins/post-type-switcher/
Forum: Themes and Templates
In reply to: Theme Clear Line very good for beginnersGuess it’s this theme
http://wordpress.org/extend/themes/clear-lineForum: Fixing WordPress
In reply to: sql problemForum: Fixing WordPress
In reply to: How to not show in top menu & only in custom menuIf those Page links are presented with template tag, wp_list_pages(), then look at using the
exclude=argument.Forum: Themes and Templates
In reply to: Basic help: how to show blogtitles on home?<?php $args=array( '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'; 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: Plugins
In reply to: Storing Athletic results in the your website (database)Maybe something here:
http://wordpress.org/extend/plugins/tags/sportForum: Fixing WordPress
In reply to: About Categories and ArchivesCopy index.php to archive.php and delete this line:
<?php the_content('Continue Reading...'); ?>Forum: Fixing WordPress
In reply to: Get custom pages from custom taxonomyMight look through the example here:
http://wordpress.org/support/topic/archive-custom-post-type-and-taxonomy?replies=2Forum: Plugins
In reply to: Movie DatabaseAre you looking for a database that is already filled with movie information or are you looking for plugins to help create a movie database type site?
Forum: Themes and Templates
In reply to: Displaying Related Posts with Custom Post Type$args=array( 'post_type' => 'your post type here', 'category__in' => $category_ids, 'post__not_in' => array($post->ID), 'posts_per_page'=> 2, // Number of related posts that will be shown. 'caller_get_posts'=>1 );Forum: Fixing WordPress
In reply to: Multiple footers for differnet category not workingafter
(is_category('Graphic design')) {put
echo 'this is CATEGORY Graphic design';to make sure you are getting to that code.
I would recommend you don’t use capital letters and spaces in file names — footer would be
footer-graphic_designForum: Themes and Templates
In reply to: Having an 'OR' statement in query_posts()Use
query_posts('meta_key=flavour');Then in your loop filter out what you want (or don’t want)
$flavour = get_post_meta($post->ID, 'flavour', true); if (in_array($flavour, array('French', 'German', 'Spanish')) { echo 'Flavour is: '.$flavour'; }Note: I believe in 3.1 there will be more powerful meta possibilities with query_posts.
Forum: Plugins
In reply to: Link to Last Post By Custom Taxonomy Term<?php $args=array( 'models' => 'laptop', '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(). ?>