Forum Replies Created

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • in reply to: I don't see images in the media library #1273411

    Hi!!

    This is the code:

    function register_script() {
    global $wp_query;

    wp_enqueue_script( ‘ajax_js’, get_stylesheet_directory_uri() . ‘/js/ajax.js’, array( ‘jquery’ ), ‘1.0’, true);
    wp_localize_script( ‘ajax_js’, ‘ajaxpagination’, array(
    ‘ajaxurl’ => admin_url( ‘admin-ajax.php’ ),
    ‘query_vars’ => json_encode( $wp_query->query )
    ));
    }

    in reply to: I don't see images in the media library #1272744

    Hi!

    That line of code gives an error but I don’t know why, if I leave it commented, is there a problem?

    Maite

    in reply to: I don't see images in the media library #1272657

    Hi!!

    The problem is this code in function.php:

    add_action(‘init’, ‘register_script’);

    • This reply was modified 4 years, 6 months ago by fusionweb.
    in reply to: Uupdate version4.4.1 #1272427

    Thank you!!

    I have updated and everything is OK!

    But I have the same problem that I had, if I go to the media library the images are not displayed with the child theme activated, if I activate the other theme if I see the images.

    Thanks,
    Maite

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