Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter nardoum

    (@nardoum)

    Just un update: I was able to modify the custom query by using :
    vpf_extend_query_args (with params $items,$options)

    Then you modify $items and add whatever you want, I for example added a post_in array with the attachments I retrieved in a previous code :

    
    $items['post_status'] = 'inherit';
    $items['post_mime_type'] = 'image';
    $items['post__in'] = $attachments_ids;
    

    Only problem is it will affect every layout and even in the backend, maybe a glitch here ?

    • This reply was modified 5 years, 11 months ago by nardoum.
    Thread Starter nardoum

    (@nardoum)

    Edit : I guess my question is : how to set the custom query via PHP ?

    Thread Starter nardoum

    (@nardoum)

    Thank you for answering !

    Here is the full output on the extensions page (with wp-performance enabled) :
    2,23s 75 002kb 0,4471s 220Q

    On the WP Admin Homepage (with wp-performance enabled) :
    2,53s 101 964kb 1,2826s 317Q

    I noticed a single AJAX request fail coming from wp-performance.
    Disabling wp-performance made the site work. Still slow. When re-enabling wp-performance, it’s slow again and front-end inaccessible.

    On the front-end homepage (with wp-performance disabled) :
    3,83s 101 584kb 0,3823s 189Q

    Notice that opening Queries is also making the browser slow when wp-performance is disabled.

    Is that large ?

    I can see 3 queries each taking up to 0.0628s, 0,0575s and 0,0624s.
    The second one is wpml-string-translation and fetches 4395 rows.

    Browser tab completely crashes and I’m unable to close it and see further informations.

    FYI, here is the list of active plugins :

    • sitepress-multilingual-cms
    • all-in-one-wp-migration
    • better-admin-bar
    • caldera-forms
    • custom-fields-gutenberg
    • duplicate-page
    • user-role-editor
    • wc-builder-divi-premium
    • wc-fields-factory
    • woocommerce-gateway-stripe
    • woocommerce-menu-bar-cart
    • woocommerce-multilingual
    • woocommerce
    • wordpress-importer
    • wordpress-seo
    • wp-mail-smtp
    • wpfront-scroll-top
    • wpml-media-translation
    • wpml-string-translation
    • wpml-translation-management
    • This reply was modified 6 years, 10 months ago by nardoum.
    • This reply was modified 6 years, 10 months ago by nardoum.
    • This reply was modified 6 years, 10 months ago by nardoum.
    • This reply was modified 6 years, 10 months ago by nardoum.
    • This reply was modified 6 years, 10 months ago by nardoum.
    • This reply was modified 6 years, 10 months ago by nardoum.
    • This reply was modified 6 years, 10 months ago by nardoum.

    Hello,
    Have you found a solution ?
    Thank you !

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