Title: wrk's Replies | WordPress.org

---

# wrk

  [  ](https://wordpress.org/support/users/wrk/)

 *   [Profile](https://wordpress.org/support/users/wrk/)
 *   [Topics Started](https://wordpress.org/support/users/wrk/topics/)
 *   [Replies Created](https://wordpress.org/support/users/wrk/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/wrk/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/wrk/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/wrk/engagements/)
 *   [Favorites](https://wordpress.org/support/users/wrk/favorites/)

 Search replies:

## Forum Replies Created

Viewing 15 replies - 1 through 15 (of 29 total)

1 [2](https://wordpress.org/support/users/wrk/replies/page/2/?output_format=md) 
[→](https://wordpress.org/support/users/wrk/replies/page/2/?output_format=md)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Download Monitor] [Plugin: WordPress Download Monitor] Multisite works on main domain but not on child domains](https://wordpress.org/support/topic/plugin-wordpress-download-monitor-multisite-works-on-main-domain-but-not-on-child-domains/)
 *  [wrk](https://wordpress.org/support/users/wrk/)
 * (@wrk)
 * [13 years, 12 months ago](https://wordpress.org/support/topic/plugin-wordpress-download-monitor-multisite-works-on-main-domain-but-not-on-child-domains/#post-2681148)
 * 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](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [404 header breaks loading 404 template](https://wordpress.org/support/topic/404-status_header-breaks-loading-404-template/)
 *  Thread Starter [wrk](https://wordpress.org/support/users/wrk/)
 * (@wrk)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/404-status_header-breaks-loading-404-template/#post-2552134)
 * Problem 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](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [404 Error Page](https://wordpress.org/support/topic/404-error-page-8/)
 *  [wrk](https://wordpress.org/support/users/wrk/)
 * (@wrk)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/404-error-page-8/#post-2314558)
 * Hey 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](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](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [404.php file not loading](https://wordpress.org/support/topic/404php-file-not-loading/)
 *  [wrk](https://wordpress.org/support/users/wrk/)
 * (@wrk)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/404php-file-not-loading/#post-2472625)
 * HEY scrubbicus,
 * I encountered the same problem. See my post at: [http://wordpress.org/support/topic/404-status_header-breaks-loading-404-template](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](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [404 header breaks loading 404 template](https://wordpress.org/support/topic/404-status_header-breaks-loading-404-template/)
 *  Thread Starter [wrk](https://wordpress.org/support/users/wrk/)
 * (@wrk)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/404-status_header-breaks-loading-404-template/#post-2551999)
 * Anybody experienced the same??
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP-PageNavi] [Plugin: WP-PageNavi] WP Page Navi Doesn't work](https://wordpress.org/support/topic/plugin-wp-pagenavi-wp-page-navi-doesnt-work/)
 *  [wrk](https://wordpress.org/support/users/wrk/)
 * (@wrk)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/plugin-wp-pagenavi-wp-page-navi-doesnt-work/#post-2325234)
 * Hey,
 * 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;
       ```
   
 * source:
    [http://themeforest.net/forums/thread/pagination-on-wordpress-static-page-set-to-front-page/28120?page=1](http://themeforest.net/forums/thread/pagination-on-wordpress-static-page-set-to-front-page/28120?page=1)
 *   Forum: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
   
   In reply to: [Problem with wp_insert_post for custom post type – category is not associated](https://wordpress.org/support/topic/problem-with-wp_insert_post-for-custom-post-type-category-is-not-associated/)
 *  [wrk](https://wordpress.org/support/users/wrk/)
 * (@wrk)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/problem-with-wp_insert_post-for-custom-post-type-category-is-not-associated/#post-1614616)
 * Im 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](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [Problems with custom taxonomies](https://wordpress.org/support/topic/problems-with-custom-taxonomies/)
 *  [wrk](https://wordpress.org/support/users/wrk/)
 * (@wrk)
 * [15 years, 4 months ago](https://wordpress.org/support/topic/problems-with-custom-taxonomies/#post-1566799)
 * Hey G4sT0n, did you already find a solution??
 * I got the same problem here…
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [Custom Post Type and Taxonomy Permalinks](https://wordpress.org/support/topic/custom-post-type-and-taxonomy-permalinks/)
 *  [wrk](https://wordpress.org/support/users/wrk/)
 * (@wrk)
 * [15 years, 4 months ago](https://wordpress.org/support/topic/custom-post-type-and-taxonomy-permalinks/#post-1524816)
 * [@everybody](https://wordpress.org/support/users/everybody/): I got the same 
   problem here…Did anybody find a proper solution(not flushing the rules..)??
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [Pagination bug fixed](https://wordpress.org/support/topic/pagination-bug-fixed/)
 *  Thread Starter [wrk](https://wordpress.org/support/users/wrk/)
 * (@wrk)
 * [16 years, 1 month ago](https://wordpress.org/support/topic/pagination-bug-fixed/#post-1436694)
 * hey 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](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [nggLoader start_plugin method](https://wordpress.org/support/topic/nggloader-start_plugin-method/)
 *  Thread Starter [wrk](https://wordpress.org/support/users/wrk/)
 * (@wrk)
 * [16 years, 1 month ago](https://wordpress.org/support/topic/nggloader-start_plugin-method/#post-1429530)
 * Cool! I will use this in the future.. (Y)
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [nggLoader start_plugin method](https://wordpress.org/support/topic/nggloader-start_plugin-method/)
 *  Thread Starter [wrk](https://wordpress.org/support/users/wrk/)
 * (@wrk)
 * [16 years, 1 month ago](https://wordpress.org/support/topic/nggloader-start_plugin-method/#post-1429528)
 * Thanks Alex.
    There are some more things which I think are trivial. Shall I post
   them here or send them by e-mail?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [nggLoader start_plugin method](https://wordpress.org/support/topic/nggloader-start_plugin-method/)
 *  Thread Starter [wrk](https://wordpress.org/support/users/wrk/)
 * (@wrk)
 * [16 years, 2 months ago](https://wordpress.org/support/topic/nggloader-start_plugin-method/#post-1429496)
 * I 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](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Plugin: WordPress.com Stats] CSS fails with Dutch Language](https://wordpress.org/support/topic/plugin-wordpresscom-stats-css-fails-with-dutch-language/)
 *  Thread Starter [wrk](https://wordpress.org/support/users/wrk/)
 * (@wrk)
 * [17 years, 1 month ago](https://wordpress.org/support/topic/plugin-wordpresscom-stats-css-fails-with-dutch-language/#post-1020873)
 * anybody?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [Add new capability to view stats](https://wordpress.org/support/topic/add-new-capability-to-view-stats/)
 *  [wrk](https://wordpress.org/support/users/wrk/)
 * (@wrk)
 * [17 years, 2 months ago](https://wordpress.org/support/topic/add-new-capability-to-view-stats/#post-1015865)
 * Hey 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!

Viewing 15 replies - 1 through 15 (of 29 total)

1 [2](https://wordpress.org/support/users/wrk/replies/page/2/?output_format=md) 
[→](https://wordpress.org/support/users/wrk/replies/page/2/?output_format=md)