WebENFA
Forum Replies Created
-
Wonderful !
So far it works both on our standalone WordPress with authors and with our WPMU with local admins !
Thank you very much you’re great !Forum: Plugins
In reply to: [WP-Menu] "Secondary" parameter not working after 3.7 updateAnswering to myself here (sorry for the bad english in my posts) :
The problem comes from the fact that since 3.5, a new CSS class has appeared in the template of wp_list_pages :
page_item_has_children
At the lines 553-555, there a regexp that checks for lines from a wp-list-pages result :
preg_match_all('/page-item-(.\d*)\"/si',$sub_pages,$matches_1); preg_match_all('/page-item-(.\d*) current_page_item\"/si',$sub_pages,$matches_2); preg_match_all('/page-item-(.\d*) current_page_ancestor current_page_parent\"/si',$sub_pages,$matches_3); preg_match_all('/page-item-(.\d*) current_page_ancestor\"/si',$sub_pages,$matches_4);
I completed the regexp by adding the new code :
if (!preg_match_all('/page-item-(.\d*)/si',$sub_pages,$matches_1)) {preg_match_all('/page-item-(.\d*) page_item_has_children/si',$sub_pages,$matches_1);} if (!preg_match_all('/page-item-(.\d*) current_page_item/si',$sub_pages,$matches_2)) {preg_match_all('/page-item-(.\d*) page_item_has_children current_page_item/si',$sub_pages,$matches_2);} if (!preg_match_all('/page-item-(.\d*) current_page_ancestor current_page_parent/si',$sub_pages,$matches_3)) {preg_match_all('/page-item-(.\d*) page_item_has_children current_page_ancestor current_page_parent/si',$sub_pages,$matches_3);} if (!preg_match_all('/page-item-(.\d*) current_page_ancestor/si',$sub_pages,$matches_4)) {preg_match_all('/page-item-(.\d*) page_item_has_children current_page_ancestor/si',$sub_pages,$matches_4);}
It seems to work now as it should be.
Nevermind, I’ve found a workaround by passing my scripts in the footer, and changing the wp_enqueue_script() in_footer to true.
Forum: Plugins
In reply to: [Media Library Assistant] [mla_gallery] shortcode helpThank you for you answer.
First of all, the orderby parameter seems to order the results in a way I don’t understand when I don’t limit them to a mime type. If i use (orderby=date) or (orderby=ID) and (order=desc) without using (post_mime_type=pdf), my first displayed item’s id is 3252, but my most recent item’s id is 3793.
BUT I found a workaround, I used (post_mime_type=all) and it works nice.For the “inserted” part, I mean the parameter you see in the “Assistant” list of the Medias menu in WordPress Dashboard, the column on the right displays “Inserted in” and the id/name of the page/post where the file is actually inserted in the page/post body.
I have around 30 users and A LOT of files, most of users are not familiar with the process of publishing on wordpress eventhought they were trained many times (they are secretaries, teachers, administratives, all in their 50’s), and they upload the same file 4 to 5 times before inserting it in their page/post definitively, that’s why I need to display only the “Inserted” files in my list. Also, they have a great difficulty to understand the concept of tagging elements …
It’s not a major issue so I’m going to put this post in “resolved” status, and thank you again for your help !
Forum: Plugins
In reply to: [Media Library Assistant] [mla_gallery] shortcode helpI have found one of my answer by looking through the mla_gallery shortcode php code :
To limit to 10 results, we have to use “posts_per_archive_page=10” in the shortcode.
But I have another issue, I changed orderby=date with orderby=ID and none seems to get me the last uploaded and attached documents, I can’t even find what order the shortcode choose to display.
Forum: Plugins
In reply to: [EG-Attachments] can't edit page or post since version 1.9.4.4Thank you this solved the problem.
I’m also very much interested in this, I would like to make a page with most recent documents from all the wordpress site, and also tag-related pages to display documents from all the pages and posts !