- Responsive Multi-Purpose Theme Framework! ›
- Forums ›
- Theme Support ›
- NextGEN Gallery Numbering: Change Value
I installed a new WP database and I have been adding plugin’s. I added NextGEN Gallery and started adding galleries, 3 in total. I decided I didn’t want them in the order I added them and deleted them so I could reorder their numbers. When I began to add new galleries, the numbering did not start at 1 but rather at 4.
I have tried a variety of things, starting with the most basic, uninstalling NextGen and the plugins associated with it to finally deleting all the NextGEN files off the server and finally deleting all image content under wp-content>uploads. At each step the new gallery number increased by 1.
I logged out and back into the wp dashboard, made a new installation of NextGEN and created a new gallery. This is numbered #11.
Short of deleting the WP installation, can you provide me with some help? I see under “FirmaSite: shortcodes.php” some code that appears to number the galleries but I am reluctant to attempt to change this on my own.
function firmasite_gallery_count($post_id,$classes = “”, $gallery_count = “”)
Thank you, Matoca
FirmaSite is not numbering galleries. It counts number of total images in galleries. If you add more images, it will show bigger number.
While NextGEN plugin is not one of my supported plugins, i can suggest you: you dont need to focus on gallery number. Its just a database entry which points your images. If its so much important and you dont want to start a new WordPress installation, you can modify your database which i dont recommend to someone who is not familiar with databases
Thank you, I didn’t think it had anything to do with FirmaSite, but more something with WP databases. You are right, I don’t know enough about managing the WP database to change this. The gallery numbers will always be goofed up to remind me I made a mistake
I have been making code mistakes for years and learning from them. Early I discovered how important clean file structure was and I have since become meticulous with that. I also learned, after being up all night many times, that a semi-colon either missing or in the wrong place can totally break a page, so that is another obsession……
Wordpress is a whole new beast for me to struggle with.
After posting for help in WordPress support I was encouraged to delete the gallery database in the server via phpMyAdmin. I have used this before so I was somewhat familiar with it.
It was easy getting into the database, the hardest part was finding the right WordPress database installation. The file names for wp databases have changed in time from something like _wp11 to _wor3. So I had to view the contents of a few databases to find the right one. The one I just installed is _wor3.
I deleted the ngg_gallery in _wor3 but when I logged back into the blog and installed a new gallery, it was #12.
So I went back into phpMyAdmin and selected “edit” for ngg_gallery and changed the value for the -gid- from 12 to 1.
Logged back in and now the gallery is #1. Problem solved! So this is the solution how to renumber the galleries, probably not for the average user however.
Thank you for your help. Matoca
You must be logged in to reply to this topic.