MichaelH
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Displaying Custom Posts by CategorySee if this works:
<?php $cat_id = get_cat_ID('preparation'); $loop = new WP_Query( array( 'post_type' => 'portfolio', 'cat' => $cat_id ) ); ?>Forum: Fixing WordPress
In reply to: use wordpress.com login on my self hosted wordpress site?Forum: Plugins
In reply to: Display posts on a page for specific tagsYou’d probably best us a Page Template with something like:
<?php //get all terms (e.g. categories or post tags), then display 5 posts in each term $taxonomy = 'post_tag';// e.g. post_tag, category $param_type = 'tag__in'; // e.g. tag__in, category__in $term_args=array( 'include' => '1,2,3', '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' => 5, '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(). ?>Forum: Fixing WordPress
In reply to: Hotmail/Gmail account problemProbably. If you are using Xampp http://www.google.com/search?q=xampp+using+email
Forum: Requests and Feedback
In reply to: Authors in MenuFigure out the URL for each author page, then in Appearances->Menu use the Custom Links to add each URL.
Or use the Page Links To plugin and create Pages that redirect to the author page.
Forum: Fixing WordPress
In reply to: Query for Searching Post through Custom FieldsNot really answering your question here but you might look at how http://wordpress.org/extend/plugins/wp-custom-fields-search/ does things.
Forum: Themes and Templates
In reply to: how to query custom post type on search resultsWhat I’m suggesting is something like this in The Loop on your search template:
if ($post->post_type == 'members') { the_meta(); }Forum: Fixing WordPress
In reply to: importing an article /helpWhen adding a new post, click on the HTML tab then paste that text/html there.
If you want to give them access to edit the page you could use:
* http://wordpress.org/extend/plugins/magic-fields/
* http://wordpress.org/extend/plugins/more-fields/
* http://wordpress.org/extend/plugins/supple-forms/
* http://wordpress.org/extend/plugins/custom-field-template/
* http://wordpress.org/extend/plugins/custom-field-taxonomies/
* http://wordpress.org/extend/plugins/wp-custom-fields-search/Otherwise you might look at contact form type plugins that would allow you to get input from readers, or their might be some plugin that allows that kind of reader input.
Forum: Hacks
In reply to: Conditional Tag for any page with a particular word in the title?You are putting the code inside php tags, correct?
<?php if( strpos( $post->post_title, 'computers' ) ) echo 'title has word computers'; ?>Forum: Plugins
In reply to: Storing Athletic results in the your website (database)Maybe a candidate for custom post type???
Possible plugins:
http://wordpress.org/extend/plugins/custom-post-type-ui/
http://wordpress.org/extend/plugins/cms-press/
http://wordpress.org/extend/plugins/gd-taxonomies-tools/Forum: Themes and Templates
In reply to: how to query custom post type on search resultsReview Template Hierarchy (search results display) and modify that template to display your posts types differently.
Related:
Function_Reference/get_post_type
http://www.google.com/search?q=wordpress+style+posts+differentlyForum: Plugins
In reply to: Query postsWell here’s a list that might help:
* http://wordpress.org/extend/plugins/query-posts/
* http://wordpress.org/extend/plugins/wordpress-loop/
* http://wordpress.org/extend/plugins/category-posts/
* http://wordpress.org/extend/plugins/list-category/
* http://wordpress.org/extend/plugins/bns-featured-category/Forum: Fixing WordPress
In reply to: importing an article /helpThe copy and paste thing is just that–in WordPress Add a new post, then when you get to the post content, select, copy, and then paste, the text from that other site.
Forum: Fixing WordPress
In reply to: Get the term (custom taxonomy) name outside of the loop?Are you asking to get the terms for a particular post or just a list of terms?
If you want terms for a given post, just replace
$post->IDor$wp_query->post->IDwith the post ID of the post you desire.