WordPress.org

Support

Support » Plugins and Hacks » where is the gallery_shortcode generated?

where is the gallery_shortcode generated?

  • dikkevandale
    Member

    @dikkevandale

    I have a problem editing the code of the gallery shortcode..

    After searching the files I found the gallery_shortcode is being generated in:

    wp-includes/media.php

    But after changing some code in that file, the changes are not visible in the webpage :/

    I can also delete the whole function gallery_shortcode($attr) and it still shows the gallery normally.

    It looks like the code is coming from somewhere else. Can anyone check this for me. It really sucks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • dikkevandale
    Member

    @dikkevandale

    No one??!

    henkholland
    Participant

    @henkholland

    Do you have a gallery plugin doing the “works” instead of wp-includes/media.php ?

    dikkevandale
    Member

    @dikkevandale

    No, thats the problem why I can’t find it. If I delete the whole media.php it doesn’t work anymore (doh). But deleting only the shortcode <br clear:both;> and other gallery shortcode things doesn’t seem to affect the output of the gallery :/

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘where is the gallery_shortcode generated?’ is closed to new replies.