MichaelH
Forum Replies Created
-
Forum: Plugins
In reply to: Need popular posts pluginConsider downloading and installing Otto’s PHP Code Widget, then something like this code in one of those widgets:
<?php if (function_exists('wpp_get_mostpopular')) wpp_get_mostpopular(); ?>Forum: Fixing WordPress
In reply to: About Categories and ArchivesDelete
the_excerpt()and replace withthe_content()Forum: Fixing WordPress
In reply to: Categories: How to display multiple excerpts?Please paste all the code from the theme template file (probably category.php) that is displaying those posts into a pastebin such as wordpress.pastebin.com, and report the link back here. Maybe someone can spot your problem. Thanks.
Forum: Fixing WordPress
In reply to: Displaying Custom Posts by CategoryPlease paste all the code from the theme template file (e.g. index.php or category.php or archive.php) that is displaying those posts into a pastebin such as wordpress.pastebin.com, and report the link back here. Maybe someone can spot your problem. Thanks.
Forum: Requests and Feedback
In reply to: Authors in MenuUse the template tag, wp_list_authors().
<?php wp_list_authors(); ?>Forum: Hacks
In reply to: Conditional Tag for any page with a particular word in the title?May have to use
$post[0]->post_titleinstead of$post->post_titleForum: Fixing WordPress
In reply to: How can my Guests Submit Posts?Without a plugin you’d have to write custom code to do those things.
Forum: Fixing WordPress
In reply to: How can my Guests Submit Posts?Possibly related:
* http://wordpress.org/extend/plugins/sidebar-post/
* http://wordpress.org/extend/plugins/tdo-mini-forms/
* http://www.deliciousdays.com/cforms-plugin/
* http://wordpress.org/extend/plugins/posthaste
* or the p2 theme http://wordpress.org/extend/themes/p2
* let visitors upload files:
o http://www.deliciousdays.com/cforms-plugin/
o http://wordpress.org/extend/plugins/tdo-mini-forms/
o http://wordpress.org/extend/plugins/nextgen-public-uploader/
o http://wordpress.org/extend/plugins/contact-form-7/Forum: Fixing WordPress
In reply to: Listing posts within a categoryDidn’t really test this but using example from http://wordpress.org/support/topic/dropdown-list-of-posts-in-a-category?replies=4
<?php $cat_id = get_cat_ID('uncategorized'); $args=array( 'cat' => $cat_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() ) { ?> <form name="jump"> <select name="menu"> <?php while ($my_query->have_posts()) : $my_query->the_post(); ?> <option value="<?php the_permalink() ?>"><?php the_title(); ?></option> <?php endwhile; } ?> </select> <input type="button" onClick="location=document.jump.menu.options[document.jump.menu.selectedIndex].value;" value="Go"> </form> <?php wp_reset_query(); // Restore global post data stomped by the_post(). ?>Forum: Fixing WordPress
In reply to: Get the term (custom taxonomy) name outside of the loop?<?php $taxonomy = 'concerts'; $queried_term = get_query_var($taxonomy); $terms = get_terms($taxonomy, 'slug='.$queried_term); if ($terms) { foreach($terms as $term) { echo '<p> This is the Term name ' . $term->name . 'and description '. $term->description . '</p> '; } } ?>Forum: Requests and Feedback
In reply to: Authors in MenuForum: Hacks
In reply to: Conditional Tag for any page with a particular word in the title?Your braces
{are in the wrong place.<?php if( strpos( $post->post_title, 'oranges' ) ) { ?> <p>orange text here</p> <?php echo do_shortcode('[shortcodeorange]'); } elseif( strpos( $post->post_title, 'apples' ) ) { ?> <p>apple text here</p> <?php echo do_shortcode('[shortcodeapple]'); } else { } ?>Forum: Fixing WordPress
In reply to: Get the term (custom taxonomy) name outside of the loop?Forum: Requests and Feedback
In reply to: Authors in Menu(e.g. in the sidebar).
Use a Widget instead.
Forum: Fixing WordPress
In reply to: Hotmail/Gmail account problem