wrk
Forum Replies Created
-
checking if this is the root or child site solves the problem:
if(is_multisite() && 1 != $blog_id ){ $path = 'wp-content/blogs.dir/' . $blog_id . '/' . $path; }If you use a Custom Download URL (for example: yoursite.com/download/ID), make sure you add the following to your .htaccess under the download plugin section:
RewriteRule ^([_0-9a-zA-Z-]+/)?download/([^/]+)$ /wp-content/plugins/download-monitor/download.php?id=$2 [L]NOTE: assuming you use the subfolder setup for the multisite!
Hope this helps
Forum: Fixing WordPress
In reply to: 404 header breaks loading 404 templateProblem solved.
Problem origin was at the hosting provider. They found a fault in the way (they told me) “SEF Url’s” where handled.
They couldn’t supply me with more detailed info unfortunately. Only info I got is that they fixed some in the VHost software.
Forum: Plugins
In reply to: 404 Error PageHey Mahender C,
I got a simular problem with not getting my 404.php Theme’s template when requesting a non existed page: http://wordpress.org/support/topic/404-status_header-breaks-loading-404-template
On your site etllabs I see that the 404 is working now. What was the solution if I may ask you?
Thanks!
Forum: Themes and Templates
In reply to: 404.php file not loadingHEY scrubbicus,
I encountered the same problem. See my post at: http://wordpress.org/support/topic/404-status_header-breaks-loading-404-template.
Did you already find some solutions?
The only thing I discovered is that when you output something to the browser before the header 404 status is send, you will get your themes 404 template.
Looks like this is a server problem to me..
Forum: Fixing WordPress
In reply to: 404 header breaks loading 404 templateAnybody experienced the same??
Forum: Plugins
In reply to: [WP-PageNavi] [Plugin: WP-PageNavi] WP Page Navi Doesn't workHey,
I found the solution for this problem:
instead of using:
$paged = get_query_var('paged') ? get_query_var('paged') : 1;use:
if ( get_query_var('paged') ) { $paged = get_query_var('paged'); } elseif ( get_query_var('page') ) { $paged = get_query_var('page'); } else { $paged = 1; }or (shortway):
$paged = ( get_query_var('paged') ) ? get_query_var('paged') : ( get_query_var('page') ) ? get_query_var('page') : 1;Forum: Hacks
In reply to: Problem with wp_insert_post for custom post type – category is not associatedIm using wp_insert_post now to insert custum post types (with a custom hierarchical taxonomy)
My solution:
//first get the term (I used slug, but you can aslo use 'name'), see: http://codex.wordpress.org/Function_Reference/get_term_by $term = get_term_by( 'slug', 'your custom term slug', 'your custom taxonomy' ); //then get the term_id $term_id = $term->term_id; //Use 'tax_input' instead of 'post_category' and provide the term_id: 'tax_input' => array( 'your taxonomy' => $term_id )now you can use wp_insert_post.
Hope this helps somebody
Forum: Themes and Templates
In reply to: Problems with custom taxonomiesHey G4sT0n, did you already find a solution??
I got the same problem here…
Forum: Themes and Templates
In reply to: Custom Post Type and Taxonomy Permalinks@everybody: I got the same problem here…Did anybody find a proper solution(not flushing the rules..)??
Forum: Plugins
In reply to: Pagination bug fixedhey alex,
let say i I have 30 galleries to list with a max of 25/page.
for the 1st page the pagination gives: Displaying 1–25 of 30 (thats correct)
for the 2nd (last page) the pagination gives: Displaying 6–10 of 30 (thats incorrect..)
I also tested it with other max numbers/page and same story again.
The changes i posted above fixed the problem for me!
Forum: Plugins
In reply to: nggLoader start_plugin methodCool! I will use this in the future.. (Y)
Forum: Plugins
In reply to: nggLoader start_plugin methodThanks Alex.
There are some more things which I think are trivial. Shall I post them here or send them by e-mail?Forum: Plugins
In reply to: nggLoader start_plugin methodI know yeah but the admin panel is created in the ‘load_dependencies’ method (the nggAdminPanel class called) and not in the ‘start_plugin’ method. I think you commented wrong in the start_plugin method..
Forum: Plugins
In reply to: [Plugin: WordPress.com Stats] CSS fails with Dutch Languageanybody?
Forum: Plugins
In reply to: Add new capability to view statsHey Txanny, I agree!
For now I just changed the “manage_options” to “7”.. and will do the job for me 🙂
Anyway it would be cool 2 have an option like that.
cheers!