/**
* Move subfolders above thumbnails
*
*/
function eg_move_subfolders() {
remove_action('eazyest_gallery_after_folder_content','ezg_subfolders', 5);
add_action('eazyest_gallery_before_folder_content','ezg_subfolders', 6);
}
add_action('eazyest_gallery_before_folder_content','eg_move_subfolders', 1);
– There is a nice plugin to add Eazyest Gallery pages and also other custom post types to your menu:
http://wordpress.org/extend/plugins/sf-archiver/
– Check the plugin setting page for Sort folders option, choose sort by Name
– For numbered pagination try to integrate these nice pagination plugins:
http://wordpress.org/plugins/prime-strategy-page-navi/
http://wordpress.org/plugins/wp-pagenavi/
– filter to change the folder icon is eazyest_gallery_folder_icon, you can custom code for searching the image, see related thread:
http://wordpress.org/support/topic/modify-folder-icon
-where I have to put that code?
-I’ve tried sf-archiver but it will just add only a button with link to the gallery in the menu bar.I need a button that will show the subfolders,and so you can choose a subfolder easyly.the classic collapsible menu.
-in my site I have 5 main folders,and the subfolders are hundreds.I need something to make the navigation easy for the visitors
-I’m using the mh magazine theme,and I’ve tried a lot of plugins,but a lot of them don’t works with eazyest gallery,also the two for pagination.
-sorry But I’m new to wordpress and I don’t know where I have to put that code.
I’ve noticed that if the galler there are subfolders with the same name,every link to that folders will appear with a lot of numbers in it like in this way!how I can fix it?
mysite.com/gallery/electronics/accuphase-2/preamplifier-2-3-4-5-6-7-8-9-10-11-12-13-14-15-16-17-18-19-20-21-22-23-24-25-26-27-28-29-30-31-32-33-34-35-36-37-38-39-40-41-42-43-44-45-46-47-48-49-50-51-52-53-54-55-56-57-58-59-60-61-62-63-64-65-66/
thanks a LOT
WordPress automatically includes the functions.php (which have your codes/functions) from your theme directory.
Info: https://codex.wordpress.org/Functions_File_Explained
>> I need a button that will show the subfolders,and so you can choose a subfolder easyly the classic collapsible menu.
>> In my site I have 5 main folders,and the subfolders are hundreds.I need something to make the navigation easy for the visitors
In admin/menus section you can create the menu and submenus with drag and drop. Similarly to the default posts and pages.
Maybe check this related plugin:
https://wordpress.org/plugins/add-descendants-as-submenu-items/
>> pagination
– I will check this for you
>> folder slug names
– In WordPress every post have a unique slug name; and if the slug name is taken than it will suffix with the next available number.
In your whole gallery how many folders you have with the same name?
that plugin for creating submenus is really nice,except for the fact that it will add in the source code of the page all the links to subfolders.This added 4″ to page loading time.but for this I have to contact its creator.
I’ve fixed the slug problem http://wordpress.org/support/topic/how-to-easily-fix-the-2-3-4-slug-links-issue?replies=1#post-5320448
thanks for the pagination π
do you know how I can add a search plugin that will find the image that I’m searching for?I’ve tried relevanssi,but it search just the folder name or posts,not the image name.My site is this http://www.hifishock.org
If I want to find for example a photo with this name “ta-fa777es”,it will say that there is no photo,and so with all photos names.
Thanks a lot.
>> do you know how I can add a search plugin that will find the image that I’m searching for?
Eazyest Gallery images are general attachments in WordPress database.
Blog post about how to include Attachment:
http://brimosoft.nl/2013/04/03/search-for-attachments/
there is a way to speed-up the searching for new images/folders?when I’ll add new images or folder,to show them to the visitors,I have to click in Eazyest Gallery/All folders,after this it will automatically search for new ones…this is nice but because I have 32.000 images it will takes 8 hours to complete this,there i a way to add new photos to gallery quickly?thanks
p.s.
there is a way to augment the border size of subfolders thumbnails?
I don’t really know where I have to put this code!
/**
* Move subfolders above thumbnails
*
*/
function eg_move_subfolders() {
remove_action(‘eazyest_gallery_after_folder_content’,’ezg_subfolders’, 5);
add_action(‘eazyest_gallery_before_folder_content’,’ezg_subfolders’, 6);
}
add_action(‘eazyest_gallery_before_folder_content’,’eg_move_subfolders’, 1);`
ok finally I’ve learned how to use the child theme,and so I’ve added the move subfolders code.But there is a little problem:if in a folder there are images and so thumbnails,the subfolders will be displayed below all the thumbnails.I need that the subfolders will be displayed before the thumbnails.
Thanks A LOT.