MichaelH
Forum Replies Created
-
Forum: Hacks
In reply to: Daily Archive<?php // list all posts, sectioned by post date $args=array( 'orderby' => 'date', 'order' => 'DESC', 'posts_per_page'=>-1, 'caller_get_posts'=>1 ); $my_query = new WP_Query($args); if( $my_query->have_posts() ) { echo 'Date archive of all ' . count($my_query->posts) . ' posts'; while ($my_query->have_posts()) : $my_query->the_post(); $this_date = get_the_time(__('l d F Y')); if ($this_date != $last_date) { $last_date = $this_date; echo '<h2>'.$last_date.'</h2>'; } ?> <p><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></p> <?php endwhile; } //if ($my_query) wp_reset_query(); // Restore global post data stomped by the_post(). ?>Forum: Hacks
In reply to: How to store data about my productsBetter to keep the discussion on your original topic:
http://wordpress.org/support/topic/how-to-create-tables-to-store-dataForum: Themes and Templates
In reply to: Giving more hierarchy to postsHow about this plugin:
http://wordpress.org/extend/plugins/astickypostorderer/Forum: Themes and Templates
In reply to: get_option multiple callsIf I understand it correctly, since get_bloginfo(‘url’); ‘eventually’ uses get_option, and the site_url and home values are autoloaded, I’d guess there’s only one read of the database and that’s done automatically by WordPress core.
Forum: Fixing WordPress
In reply to: I Need To Set Existing Image Attachment as Custom Field in DatabaseI just deleted those. This user also started a 2nd profile/login that has be bozoed.
Forum: Plugins
In reply to: [List category posts] [Plugin: List category posts] Using in php?What about the Recent Posts Widget.
Or:
* 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: I did an update and now all my product is goneAll those directories are not ‘standard’ WordPress directories so you may have a plugin that is not working or deactivated.
Forum: Plugins
In reply to: Remove old page versions pluginLook at Editing wp-config.php, Specify the Number of Post Revisions, or http://wordpress.org/extend/plugins/revision-control/
There there is http://wordpress.org/extend/plugins/delete-revision/
Not sure about the zip but there is always phpMyAdmin or http://wordpress.org/extend/plugins/wp-dbmanager/
Forum: Fixing WordPress
In reply to: Can I Add Post to Pages or a sticky post to a categoryForum: Fixing WordPress
In reply to: Can I Add Post to Pages or a sticky post to a categoryNever used it but it sounds good.
If you get a chance please provide a link to download that plugin.
Forum: Fixing WordPress
In reply to: query_posts custom order<?php $postids=array(1,9,7,23,8,11); foreach ($postids as $id) { $post=get_post(intval($id)); setup_postdata($post);?> <p><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></p> <?php } ?>There’s an open trac ticket on a similar request:
http://core.trac.wordpress.org/ticket/13729Forum: Fixing WordPress
In reply to: Can I Add Post to Pages or a sticky post to a categoryMight look at
* http://wordpress.org/extend/plugins/postlists/
* 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)
* http://wordpress.org/extend/plugins/sb-child-list/ (display pages either parent or child and has shortcode)And another approach:
http://wordpress.org/extend/plugins/astickypostorderer/Forum: Fixing WordPress
In reply to: Change existing image attachment to custom field in databse?Forum: Plugins
In reply to: how to manage order of posts in an post list pageUse the ‘orderby=meta_value’ argument. See query_posts() for more arguments.
Forum: Fixing WordPress
In reply to: Show only latest single post for multiple categories on Home PageYou would modify your theme files to do that.
You will want to review:
Stepping Into Templates
Template Hierarchy
Designing_Themes_for_Public_Release
Stepping Into Template Tags