WordPress.org

Ready to get started?Download WordPress

Forums

where is the gallery_shortcode generated? (4 posts)

  1. dikkevandale
    Member
    Posted 4 years ago #

    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!

  2. dikkevandale
    Member
    Posted 4 years ago #

    No one??!

  3. henkholland
    Member
    Posted 4 years ago #

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

  4. dikkevandale
    Member
    Posted 4 years ago #

    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 :/

Topic Closed

This topic has been closed to new replies.

About this Topic