post_image and gallery (2 posts)

  1. ChaosDrgn
    Posted 6 years ago #

    When I add a post image with 2.9 beta it wants to add it to the gallery that's attached to the post. is there anyway to cancel it out so it only appears AS a post image and not part of the gallery?

  2. Fairweb
    Posted 6 years ago #

    Edit your post and switch to html mode. The gallery short tag should look like this.
    [gallery link="file"]

    Let's say your image ID is 55, write :
    [gallery link="file" exclude=55]

    The different settings that can be used for this short tag are in
    function gallery_shortcode($attr)
    in wp-includes/media.php

Topic Closed

This topic has been closed to new replies.

About this Topic