MichaelH
Forum Replies Created
-
Forum: Hacks
In reply to: A widget to display only the latest postI am no programmer, or anything.
Now you don’t have to say that anymore. Good Work!
Forum: Fixing WordPress
In reply to: MYSQL Query for sorting wordpress usermeta dataMakes it act like a number instead of a string.
Forum: Fixing WordPress
In reply to: Test data for theme development please!!Forum: Plugins
In reply to: Is there a way to show unique views of each post in panel?Do you mean like a single post view as described in Template Hierarchy?
Forum: Fixing WordPress
In reply to: Exclude category by name?????HelpppppppDon’t forget the native WordPress function get_cat_ID
Forum: Plugins
In reply to: [wp Time Machine] [Plugin: wp Time Machine] Not using wp_ table prefixesHmm…that plugin has this code
define( 'wp_table_prefix', $table_prefix );so would think your wp-config.php $table_prefix was being used.Forum: Fixing WordPress
In reply to: Allow user to edit only certain pagesForum: Themes and Templates
In reply to: hide child categoriesThen would guess you need the
depth=1argument added to the template tag, wp_list_categories(), or wp_dropdown_categories(). Look at your theme’s header.php for that.Related:
Stepping Into Template Tags
Stepping Into Templates
Template HierarchyForum: Fixing WordPress
In reply to: give page id specific conditions when using pretty urls in wordpressAre you saying a conditional tag such as
is_page('42')is not working?Related:
* http://wordpress.org/extend/plugins/slayers-custom-widgets
* http://wordpress.org/extend/plugins/widget-logic
* http://wordpress.org/extend/plugins/display-widgets
* http://wordpress.org/extend/plugins/widget-context
* http://wordpress.org/extend/plugins/dynamic-widgets/
* http://wordpress.org/extend/plugins/widgets-on-pages/Forum: Fixing WordPress
In reply to: MYSQL Query for sorting wordpress usermeta dataTry
ORDER BY meta_value+0Forum: Hacks
In reply to: WP_Query and custom_field sorting question$args=array( 'meta_key' => 'featured', 'meta_value' => 'JA', 'post_type' => 'event', 'post_status' => 'publish', 'posts_per_page' => -1, 'caller_get_posts'=> 1 ); $my_query = null; $my_query = new WP_Query($args);See query_posts()
Forum: Themes and Templates
In reply to: hide child categoriesSince you don’t explain how you display those categories will direct you to the template tag, wp_dropdown_categories(), and the
depth=1argument.Forum: Fixing WordPress
In reply to: writing a post in my pageIn WordPress you don’t really write posts into a page.
Here’s some plugins that might help:
# http://wordpress.org/extend/plugins/postlists/
# http://wordpress.org/extend/plugins/pages-posts/
# 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)Forum: Hacks
In reply to: A widget to display only the latest postNot sure if these can be configured to display everything you want but look at:
* 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: Issue with category name based post displayTry this instead:
$cat_id = get_cat_ID('your category'); $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);