Title: wdm's Replies | WordPress.org

---

# wdm

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

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

 Search replies:

## Forum Replies Created

Viewing 8 replies - 1 through 8 (of 8 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [Pass array to query_vars](https://wordpress.org/support/topic/pass-array-to-query_vars/)
 *  Thread Starter [wdm](https://wordpress.org/support/users/wdm/)
 * (@wdm)
 * [16 years, 3 months ago](https://wordpress.org/support/topic/pass-array-to-query_vars/#post-1497004)
 * There is a kind-of workaround, by explicitly adding the `query_vars` from `$_GET`:
 *     ```
       function parse_query_vars($query) {
   
         if ( isset($_GET['multi-cat']) ) {
   
           $query->query_vars['multi-cat'] = $_GET['multi-cat'];
   
           var_dump($query);
   
         }
   
       }
       ```
   
 * The var_dump now reports:
 *     ```
       ["query_vars"]=>
         array(1) {
           ["multi-cat"]=>
           array(2) {
             [0]=>
             string(1) "6"
             [1]=>
             string(2) "10"
           }
         }
       ```
   
 * Unfortunately custom rewrite rules don’t seem to work with this method.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [Pass array to query_vars](https://wordpress.org/support/topic/pass-array-to-query_vars/)
 *  Thread Starter [wdm](https://wordpress.org/support/users/wdm/)
 * (@wdm)
 * [16 years, 3 months ago](https://wordpress.org/support/topic/pass-array-to-query_vars/#post-1497001)
 * Here is the code:
 *     ```
       function add_query_vars($query_vars) {
         $query_vars[] = 'multi-cat';
         return $query_vars;
       }
       ```
   
 * With the url `blog.com/?multi-cat[]=6&multi-cat[]=10`
 * (GET vars come from a multiple category widget I’m working on, the selects are
   each named ‘multi-cat[]’ to create an array of category IDs).
 *     ```
       function parse_query_vars($query) {
         var_dump($query);
       }
       ```
   
 * The resulting var_dump shows the array is recognised, but cast to a string:
 *     ```
       ["query_vars"]=>
         array(1) {
           ["multi-cat"]=>
           string(5) "Array"
        }
       ```
   
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Tags return “-1” for user level Author or below in WP 2.7.1](https://wordpress.org/support/topic/tags-return-1-for-user-level-author-or-below-in-wp-271/)
 *  [wdm](https://wordpress.org/support/users/wdm/)
 * (@wdm)
 * [17 years, 1 month ago](https://wordpress.org/support/topic/tags-return-1-for-user-level-author-or-below-in-wp-271/#post-1080885)
 * It seems to be something to do with the [manage_categories](http://codex.wordpress.org/Roles_and_Capabilities#manage_categories)
   capability
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Category Base Removal and Category Pagination (Revisited)](https://wordpress.org/support/topic/category-base-removal-and-category-pagination-revisited/)
 *  [wdm](https://wordpress.org/support/users/wdm/)
 * (@wdm)
 * [18 years ago](https://wordpress.org/support/topic/category-base-removal-and-category-pagination-revisited/#post-773050)
 * Any news?
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [relative URL converted to abs URL in Visual Editor 2.5](https://wordpress.org/support/topic/relative-url-converted-to-abs-url-in-visual-editor-25/)
 *  [wdm](https://wordpress.org/support/users/wdm/)
 * (@wdm)
 * [18 years ago](https://wordpress.org/support/topic/relative-url-converted-to-abs-url-in-visual-editor-25/page/2/#post-722200)
 * don’t forget to add commas – so the array in your `wp-includes/js/tinymce/tiny_mce_config.
   php` should end like:
 * >  ‘old_cache_max’ => ‘1’, // number of cache files to keep
   >  ‘convert_urls’ =
   > > false, ‘relative_urls’ => true’
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [How to remove “/category” from the category URL?](https://wordpress.org/support/topic/how-to-remove-category-from-the-category-url-1/)
 *  [wdm](https://wordpress.org/support/users/wdm/)
 * (@wdm)
 * [18 years ago](https://wordpress.org/support/topic/how-to-remove-category-from-the-category-url-1/#post-693416)
 * Hmm… it did work, but not anymore.
    Seems not to work all the time, anyone know
   why?
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [How do you show an attachment without linking to the raw file](https://wordpress.org/support/topic/how-do-you-show-an-attachment-without-linking-to-the-raw-file/)
 *  [wdm](https://wordpress.org/support/users/wdm/)
 * (@wdm)
 * [18 years ago](https://wordpress.org/support/topic/how-do-you-show-an-attachment-without-linking-to-the-raw-file/#post-759562)
 * You could try:
    `echo '<img src="' . wp_get_attachment_url($attachment->ID) .'"/
   >';`
 * Why are there 3 functions for doing basically the same thing???
 *     ```
       the_attachment_link
       get_the_attachment_link
       wp_get_attachment_url
       ```
   
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [How to remove “/category” from the category URL?](https://wordpress.org/support/topic/how-to-remove-category-from-the-category-url-1/)
 *  [wdm](https://wordpress.org/support/users/wdm/)
 * (@wdm)
 * [18 years, 1 month ago](https://wordpress.org/support/topic/how-to-remove-category-from-the-category-url-1/#post-693414)
 * Using “/.” (without quotes) as the category base should work

Viewing 8 replies - 1 through 8 (of 8 total)