WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Gallery ID incrementation a bit wack - HELP! (2 posts)

  1. simophat
    Member
    Posted 4 years ago #

    Hi,
    i recently uploaded a number of test galleries and then deleted them. Now when i upload a completely new gallery, its gallery id ($gid) has automatically resolved at 12.
    This is obviously because i had 11 galleries before. HOwever i deleted them from the nggallery interface as well as the database.
    Can anyone help. I need to reset the gallery id number so that when i restart uploading galleries it starts at "1" again.

    I really need the gallery ids to increment one after the other so if the last gallery had an id of 1 i need the next one to have an id of 2;... any suggestions?

    Thanks a lot

    Simon

  2. Mark / t31os
    Moderator
    Posted 4 years ago #

    I don't use that plugin but can i ask why the ID's are so important, if you have some custom code that relies on IDs it may just be easier to help you adjust that code rather then fiddle with the plugin code..

Topic Closed

This topic has been closed to new replies.

About this Topic