MichaelH
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Switching Navigation MenuIf the categories are in the wrong order then you would change the $term_args. If the posts are in the wrong order within each category then add ‘orderby’ => ‘title’ to the $args list.
See http://codex.wordpress.org/Template_Tags/query_posts for additional arguments.
Forum: Fixing WordPress
In reply to: custom page not updatingNote I deleted your topic of the same issue.
Forum: Fixing WordPress
In reply to: Switching Navigation MenuAdd
'order' => 'ASC',to this:
$args=array( "$param_type" => array($term->term_id), 'post_type' => 'page', 'post_status' => 'publish', 'posts_per_page' => -1, 'caller_get_posts'=> 1Forum: Fixing WordPress
In reply to: Categories, Archives and TagsUse http://wordpress.org/extend/plugins/custom-post-limits/
If necessary read about Category Templates and Tag Templates and Template Hierarchy
Forum: Fixing WordPress
In reply to: Category Based Post ID blocks?See why you can’t control post ids:
http://wordpress.org/support/topic/assigning-specific-ids-to-posts?replies=3#post-1752185Forum: Plugins
In reply to: Plugin: latest 10 news, but counting after 5 newsUse the query_posts offset argument.
http://codex.wordpress.org/Template_Tags/query_posts#Offset_Parameter
Forum: Fixing WordPress
In reply to: Assigning Specific ID's to Posts?The post table, and thus Post IDs, are used for a myriad of other things including Pages, attachments, revisions, menus, and custom posts types, so you can’t control the assignment of Post IDs.
You could create a Custom Field and use that to assign your own ID.
Forum: Installing WordPress
In reply to: Trial VersionWordPress requires a web-server, PHP, and MySQL. So to do that you need to install a package like XAMPP or EasyPHP. Once those are working you can install WordPress.
You might also consider finding a host that already supports WordPress with a one-click install and doesn’t over-charge to use MySQL.
Forum: Fixing WordPress
In reply to: Switching Navigation MenuIn this case, you have to get all categories, even those categories that have no Posts (yes Posts). So your $args for the get_terms needs to be:
$term_args=array( 'hide_empty' => false, 'orderby' => 'name', 'order' => 'ASC' );Forum: Fixing WordPress
In reply to: Switching Navigation MenuCan’t test that right now but
'post_type' => 'post',for pages would be
'post_type' => 'page',Forum: Hacks
In reply to: How to show recent post on external site?Put the query posts loop in your WordPress theme’s index.php and make sure that code is working.
Forum: Fixing WordPress
In reply to: View Custom Post Types as a List?Nice one coopersita
http://wordpress.org/extend/plugins/simple-custom-post-type-archives/
Forum: Fixing WordPress
In reply to: View Custom Post Types as a List?Forum: Fixing WordPress
In reply to: View Custom Post Types as a List?Of course I get “Sorry, no posts matched your criteria.” but your code does execute properly in a Page Template for me.
[edit]
Changing the post_type to book (my custom post type) and it does display properly for me.
Forum: Fixing WordPress
In reply to: View Custom Post Types as a List?Hopefully you are putting that code in your theme’s proper template. If necessary paste ALL your code in that template into wordpress.pastebin.com and report the link back here and maybe someone can spot the problem.
Related:
Stepping Into Template Tags
Stepping Into Templates
Template Hierarchy