MichaelH
Forum Replies Created
-
Forum: Plugins
In reply to: Ability to switch Page versions, not just version historySounds reasonable. Marking this resolved.
Forum: Themes and Templates
In reply to: sticky on page of postsPut this in your Page Template
<?php $args=array( 'post__in'=>get_option('sticky_posts'), '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 the_content(); endwhile; } wp_reset_query(); // Restore global post data stomped by the_post(). ?>Forum: Fixing WordPress
In reply to: How to: tags<?php echo get_the_term_list( $post->ID, 'post_tag', '<p>Tags: ', ', ', '</p>' ); ?>Forum: Plugins
In reply to: set my own variablesYou should be able to put a function in your theme’s functions.php and ‘call’ that function in your other theme template files.
Forum: Fixing WordPress
In reply to: Replace Page with custom post type, using an existing permalinkHow about changing the Page Template for Products to just display the products post_type?
See http://codex.wordpress.org/Pages#A_Page_of_Posts_for_a_Custom_Post_Type
Forum: Fixing WordPress
In reply to: Archive.php Show post links under each categoryMaybe you can find a plugin that helps with that:
http://www.google.com/search?q=wordpress+plugin+tag+cloudForum: Fixing WordPress
In reply to: exclude_tree wp_list_categories not workingAssuming 15 is id of the parent of the tree you want to exclude
<?php $term_list = ''; $taxonomy = 'category'; $term_args=array( 'child_of' => 15 ); $terms = get_terms($taxonomy,$term_args); if ($terms) { foreach( $terms as $term ) { $term_list .= $term->term_id . ','; } $term_list .= '15'; wp_list_categories('hide_empty=0&exclude='.$term_list); } ?>Forum: Fixing WordPress
In reply to: How do I change the words "Register" and "Lost Password"Maybe some ideas here:
http://wordpress.org/support/topic/need-advice-on-renaming-register?replies=5Forum: Fixing WordPress
In reply to: Sorry! We can't seem to find what you're looking for!Maybe you deleted the page you specified as your Front page in Administration > Settings > Reading
Forum: Fixing WordPress
In reply to: Archive.php Show post links under each category<?php //get all terms (e.g. categories or post tags), 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(). ?>Note see the Time Parameters in the query_posts() article.
Forum: Fixing WordPress
In reply to: Query posts by tag and custom fieldNow I want to have multiple values show up for the meta_key “artist_name”. Is there any way to do this?
You’d have to resort to using wpdb for something like that.
Forum: Fixing WordPress
In reply to: List Post from Categories using separate page for each categoriesThere isn’t a way to ‘associate’ Pages to categories in the admin. If you use categories on posts WordPress will automatically give you access to a display of all the posts in a particular category if you use something like the Category Widget.
You can also create a Page and use a plugin such as http://wordpress.org/extend/plugins/list-category-posts/
Or the Pages article has the Page of Posts example where you can code it to say if this is Page X, display category Y posts.
Forum: Fixing WordPress
In reply to: Which condition to call posts in blog?Look at some of the other Conditional Tags such as is_archive or is_category or is_page.
Forum: Fixing WordPress
In reply to: Help me about post per pageLook at this plugin http://wordpress.org/extend/plugins/custom-post-limits/
Forum: Fixing WordPress
In reply to: How do I install an older version of WordPress. Thanks.Backup your database and files before beginning. See WordPress Backups
You might just be able to delete the 3.0.1 files and use the 3.0 files. Essentially that’s steps 7 and 8 in Upgrading WordPress Extended
But if that doesn’t work, use Administration > Tools > Export to export your existing data. Then delete your database tables.
Then install the older version from http://wordpress.org/download/release-archive/ and then do Administration > Tools > Import