Title: WebENFA's Replies | WordPress.org

---

# WebENFA

  [  ](https://wordpress.org/support/users/webenfa/)

 *   [Profile](https://wordpress.org/support/users/webenfa/)
 *   [Topics Started](https://wordpress.org/support/users/webenfa/topics/)
 *   [Replies Created](https://wordpress.org/support/users/webenfa/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/webenfa/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/webenfa/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/webenfa/engagements/)
 *   [Favorites](https://wordpress.org/support/users/webenfa/favorites/)

 Search replies:

## Forum Replies Created

Viewing 7 replies - 1 through 7 (of 7 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Kadence Blocks — Page Builder Toolkit for Gutenberg Editor] SVG parsing error for “lower” user roles](https://wordpress.org/support/topic/svg-parsing-error-for-lower-user-roles/)
 *  Thread Starter [WebENFA](https://wordpress.org/support/users/webenfa/)
 * (@webenfa)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/svg-parsing-error-for-lower-user-roles/#post-12071661)
 * 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](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP-Menu] "Secondary" parameter not working after 3.7 update](https://wordpress.org/support/topic/secondary-parameter-not-working-after-37-update/)
 *  Thread Starter [WebENFA](https://wordpress.org/support/users/webenfa/)
 * (@webenfa)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/secondary-parameter-not-working-after-37-update/#post-4264152)
 * Answering 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.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Announcer - Sticky Message Banner & Notification Bar] jQuery broken after update](https://wordpress.org/support/topic/jquery-broken-after-update/)
 *  Thread Starter [WebENFA](https://wordpress.org/support/users/webenfa/)
 * (@webenfa)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/jquery-broken-after-update/#post-3481055)
 * 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](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Media Library Assistant] [mla_gallery] shortcode help](https://wordpress.org/support/topic/mla_gallery-shortcode-help/)
 *  Thread Starter [WebENFA](https://wordpress.org/support/users/webenfa/)
 * (@webenfa)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/mla_gallery-shortcode-help/#post-3392470)
 * Thank 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](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Media Library Assistant] [mla_gallery] shortcode help](https://wordpress.org/support/topic/mla_gallery-shortcode-help/)
 *  Thread Starter [WebENFA](https://wordpress.org/support/users/webenfa/)
 * (@webenfa)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/mla_gallery-shortcode-help/#post-3392432)
 * I 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](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[EG-Attachments] can't edit page or post since version 1.9.4.4](https://wordpress.org/support/topic/cant-edit-page-or-post-since-version-1944/)
 *  Thread Starter [WebENFA](https://wordpress.org/support/users/webenfa/)
 * (@webenfa)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/cant-edit-page-or-post-since-version-1944/#post-3384684)
 * Thank you this solved the problem.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[EG-Attachments] [Plugin: EG-Attachments] Can you display attachments by tags indepedent of post ID reference?](https://wordpress.org/support/topic/plugin-eg-attachments-can-you-display-attachments-by-tags-indepedent-of-post-id-reference/)
 *  [WebENFA](https://wordpress.org/support/users/webenfa/)
 * (@webenfa)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/plugin-eg-attachments-can-you-display-attachments-by-tags-indepedent-of-post-id-reference/#post-2613864)
 * 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 !

Viewing 7 replies - 1 through 7 (of 7 total)