Title: polymathnyc's Replies | WordPress.org

---

# polymathnyc

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

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

 Search replies:

## Forum Replies Created

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

 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [[Modality] Relative Path of image is not working in local server.](https://wordpress.org/support/topic/releative-path-of-image-is-not-working-in-local-server/)
 *  [polymathnyc](https://wordpress.org/support/users/polymathnyc/)
 * (@polymathnyc)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/releative-path-of-image-is-not-working-in-local-server/#post-6429312)
 * Hi Nakul,
 * A better way to reference your images is to place them in your theme and reference
   like this:
 * `<img src="<?php echo bloginfo('template_directory'); ?>/images/img1.png" alt
   ="">`
 * The PHP chunk in the src will print out your active theme directory relative 
   to the WordPress URL. This way your image links won’t be broken when you publish
   to a different environment.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP-SCSS] CSS not being regenerated](https://wordpress.org/support/topic/css-not-being-regenerated/)
 *  [polymathnyc](https://wordpress.org/support/users/polymathnyc/)
 * (@polymathnyc)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/css-not-being-regenerated/#post-6417334)
 * I’m also seeing this issue with WordPress v4.4.2.
 * SASS can be compiled (and polled for changes) with Compass by simply dropping
   a config.rb file (can provide example if needed) in the theme and running:
 *     ```
       gem update --system
       gem install compass
       compass watch
       ```
   
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Intuitive Custom Post Order] Breaks Gallery Drag and Drop ordering](https://wordpress.org/support/topic/breaks-gallery-drag-and-drop-ordering/)
 *  Thread Starter [polymathnyc](https://wordpress.org/support/users/polymathnyc/)
 * (@polymathnyc)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/breaks-gallery-drag-and-drop-ordering/#post-3448410)
 * This seems to be resolved. Keep up the good work hijiri!
 *   Forum: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
   
   In reply to: [How to change the menu_order ID on an image?](https://wordpress.org/support/topic/how-to-change-the-menu_order-id-on-an-image/)
 *  [polymathnyc](https://wordpress.org/support/users/polymathnyc/)
 * (@polymathnyc)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/how-to-change-the-menu_order-id-on-an-image/#post-3403818)
 * Dibbit, there is a [Media Order](http://wordpress.org/extend/plugins/media-order/)
   plugin which allows you to directly update the menu_order ID of an image. I wouldn’t
   recommend this approach, however, as the UX is pretty clunky.
 * WordPress 3.5+ now has a great drag-and-drop interface for Gallery objects within
   the post editor. I have solved this problem myself by inserting a Gallery into
   a post, and then calling the_content() rather than using get_children() to get
   the attached images.
 * There is one more step, however. WordPress adds a lot of extraneous styles to
   the Gallery by default. These are defined in the gallery_shortcode() function
   in wp-includes/media.php and can be overridden by adding a custom function to
   functions.php. I have based my function on [this article](http://wpengineer.com/1802/a-solution-for-the-wordpress-gallery/),
   but I can provide more specifics if you’d like.
 * With this approach, you can create multiple galleries using the same images without
   having to fundamentally change the menu_order ID for your images. Hope this helps!

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