MichaelH
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Exclude custom taxonomy from wp_queryDon’t know that you are going to get there in 3.0.1 but 3.1 may support that (see http://core.trac.wordpress.org/ticket/12891 for more info on that).
In the meantime you either have to resort to using wpdb or retrieve all the posts in that post type then filter out that taxonomy in your loop.
There is this plugin but don’t know that it will help http://wordpress.org/extend/plugins/query-multiple-taxonomies/
Forum: Themes and Templates
In reply to: Show Sticky post of the categoryThis search should get you Justin Tadlock guide on sticky post that could help you:
Forum: Fixing WordPress
In reply to: Monthly Archive posts by category-wiseDuplicate of http://wordpress.org/support/topic/archivephp-show-post-links-under-each-category?replies=6
Please refrain from starting duplicate topics.
Forum: Fixing WordPress
In reply to: Archive.php Show post links under each categoryYou’ll need to access the ‘m’ query var with
$year_month = get_query_var('m');then separate that into year and month and use that in your query arguments…see query_posts() for those Time related parameters.Forum: Themes and Templates
In reply to: Add more button to static pagesLook at using
<!--nextpage-->Quicktag and the Function_Reference/wp_link_pagesRelated:
Stepping Into Template Tags
Stepping Into Templates
Template HierarchyForum: Plugins
In reply to: Retrieving data from an external mysql databaseYou will need to get conversant with The Loop use a post variable such as
$post->post_titleForum: Plugins
In reply to: Posts on multiple pagesSure, use the static front page ability provided by Administration > Settings > Reading.
For your static front page you will want to make your Page Template display four posts using a query_posts loop or a plugin such as
# http://wordpress.org/extend/plugins/list-category-posts/ (uses shortcode)
# http://wordpress.org/extend/plugins/simple-posts-list/ (uses shortcode}
# http://wordpress.org/extend/plugins/nurelm-get-posts/ (uses shortcode)You will also want to review:
Stepping Into Template Tags
Stepping Into Templates
Template HierarchyForum: Installing WordPress
In reply to: Can't get to admin pageTo start a new topic, visit http://wordpress.org/support/ then click on the proper forum from the right column, then scroll to the bottom of the list topics and you will see fields to enter a new topic/message.
Also if your question relates to a wordpress.COM blog you will want to visit http://en.support.wordpress.com/contact/
Forum: Fixing WordPress
In reply to: How to add "last updated time" to posts?Ah, missed the “ago” part. alchymyth has you pointed in the right direction.
Forum: Fixing WordPress
In reply to: Display post-date using wp_get_archivesBetter to just use a query_posts() loop to do that and use the_time(), and the_author(), in your code.
Forum: Plugins
In reply to: Retrieving data from an external mysql databaseCould be that comma in the echo statement.
Try
<?php $wpdbtest_otherdb = new wpdb('username', 'password', 'shops', 'websitesql.whatever.com'); $wpdbtest_otherdb->show_errors(); $myshops = $wpdbtest_otherdb->get_results("SELECT * FROM shops"); foreach ($myshops as $myshop) { echo $myshop->shopName . '<br />'; } ?>Forum: Fixing WordPress
In reply to: How to add "last updated time" to posts?Use the_modified_time in your template.
Stepping Into Template Tags
Stepping Into Templates
Template HierarchyForum: Plugins
In reply to: how to synchronise sidebar with certain post details?This should do it
List all posts sorted by tag name or category name or taxonomy custom taxonomy
Within each category posts sorted ascending by post title.<?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( 'include' => '1,2,3', 'orderby' => 'name', 'order' => 'ASC', 'child_of' => 3 ); $terms = get_terms($taxonomy,$term_args); if ($terms) { foreach( $terms as $term ) { $args=array( "$param_type" => array($term->term_id), 'order' => 'ASC', 'orderby' => 'title', 'post_type' => 'portfolio', '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(). ?>Forum: Fixing WordPress
In reply to: WordPress database error You have an error in your SQL syntaxSELECT psp_link_status FROM wp_blr_bad_links WHEREThat’s not a standard table so deactivate plugins to see if the errors go away.