queenvictoria
Forum Replies Created
-
Hi there. I’d actually changed the way that that works anyway. I’d be interested to know if my fix works with multilanguage too. Could you retest with v0.2 please? If it doesn’t work I’ll integrate your work with the plugin. Thanks for the heads up.
if ( $menu_item->type == 'taxonomy' && $menu_item->object == "category" ) {
PS it now should work on other post types that support the category taxonomy.
Please reopen this ticket (or a new one) if this is still broken. Thanks!
Hi there. Sorry about that. I’d updated that in my local version but hadn’t pushed that up. There are a number of changes to make the plugin more useful in more cases too. Please check it out and let me know if it still solves the problem you mention here.
Forum: Plugins
In reply to: Adding a filter to ‘the_title’ without affecting titles from wp_list_pages()?try checking for in_the_loop() . the page title will occur in_the_loop and the wp_list_pages() will be outside ( or should be anyway ) .
Forum: Plugins
In reply to: Changing the default length of the_excerpti’ve been chasing down this bug . in my case its the eventcalendar3 plugin that is removing the default filter wp_trim_excerpt and overriding it with its own filter ( which is hardwired to 55 words ) . can i suggest that you try disabling that plugin if you have it or search all your plugins for ones that add_filters to excerpt hooks ?
here is my fix ( to the event calendar plugin ) . i’ll point the developer to this post too .
whale:wp-content rossetti$ grep -rni excerpt_length wp-content/plugins/ wp-content/plugins/event-calendar/eventcalendar3.php:558: $excerpt_length=55;
// $excerpt_length=55; $excerpt_length = apply_filters('excerpt_length', 55);
Forum: Fixing WordPress
In reply to: PHP upload file usng mkdir()possible the directory has already been created . before you try to make it test to see if it exists already .
if ( ! is_dir($dir_name) ) mkdir($dir_name) or die("Could not create directory " . $dir_name);
Forum: Alpha/Beta/RC
In reply to: 2.5 image uploadHere is a solution to the password protected install/admin directory problem. I am using it in 2.6.1. I have added this to my .htaccess file to allow the flash uploader to function. It reverses the require [user] directive.
# allow flash uploader to work in a password protected directory
<Files async-upload.php>
Order Deny,Allow
Allow from all
Satisfy any
</Files>
Forum: Plugins
In reply to: Please help me with this easy plugintry removing the dot from your orderby return
$orderby = " $wpdb->postmeta.meta_value ASC ";
Forum: Plugins
In reply to: Get Previous Post ID?Thanks Otto42 for that code.
Just a quick correct to Otto42’s code. Note the removal of the $ before post_count and current_post on line 3.function get_next_post_id() { global $wp_query; if ($wp_query->current_post == $wp_query->post_count) return 0; $next_post = $wp_query->posts[$wp_query->current_post + 1]; return $next_post->ID; }
And yes, the get_previous_post_id() function would have current_post – 1 on line 4.
Forum: Themes and Templates
In reply to: Using different archive templates for different categoriesThe equivalent of
single-cat-15.php
(when using Post Templates by Category plug-in for archives (this is built in, not via the plugin) iscategory-15.php
.