Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • 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.

    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

    Thread Starter polymathnyc

    (@polymathnyc)

    This seems to be resolved. Keep up the good work hijiri!

    Dibbit, there is a 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, 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)