• Is there a way to display a post’s [gallery] within the sidebar?

    Widgets? Shortcode? Template tags?

    All of the plugins I have looked at pull random images from various sources, but AFAIK, none just pull that post’s images. Am I wrong?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter websta

    (@websta)

    I should probably add that this is for a site revision that already has many, many images uploaded to display in the regular WordPress image gallery method, so using a plugin that requires you to re-upload images into the plugin is something we we need to avoid.

    Thread Starter websta

    (@websta)

    Anyone?

    Try with Nextzen Gallery plugin

    Thread Starter websta

    (@websta)

    Thanks for the response, chinmoy, but as you can see from above, that is exactly what I don’t want to do. I don’t want to set up albums, galleries, etc. via a separate interface, not do I want to add custom fields on hundreds of posts.

    I just want to pull the images already loaded in each posts’ (built-in) gallery, and display them in the sidebar — using template tags or a widget.

    (If NextGen can do that, it would be news to me.)

    Thread Starter websta

    (@websta)

    Anyone else?

    Thread Starter websta

    (@websta)

    This is the code that I am running trying to get the WordPress gallery to show to the right of the main post area. Problems:

    1. The incorrect gallery is showing.
    2. The padding won’t get smaller.
    3. I can’t get more than 3 thumbnails to display in a single line.

    I have tried this:

    <div style="
    position:relative;
    z-index:1000;
    display: inline;
    list-style-type: none;
    margin: 600px 0 0 340px;
    padding: 0;">
    <?php echo do_shortcode('[gallery id=""]'); ?>
    </div>

    And I have tried this:

    <div style="
    position:relative;
    z-index:1000;
    display: inline;
    list-style-type: none;
    margin: 600px 0 0 340px;
    padding: 0;">
    <?php echo do_shortcode('[gallery id="'.get_the_ID().'"]'); ?>
    </div>

    Neither works. Help?

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Display WordPress' gallery in sidebar?’ is closed to new replies.