Divi WordPress Theme
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

WordPress fix Reply To: pages & media disapear until search for ?

Discussion in 'Misc WordPress Requests' started by Mohammed Gritli, Jan 20, 2018.

  1. Mohammed Gritli

    Guest

    Reply To: pages & media disapear until search for ?, by Mohammed Gritli

    Thank @keithdriscoll

    Problem resolved,
    i was using an action to limit posts count for pages like so:

    function my_maps_limit($query) {
    // for any other type than home
    if(!is_home()) {
    $query->set( 'showposts', 4 );
    }else {
    $query->set( 'showposts', 10);
    }

    }
    add_action( 'pre_get_posts', 'my_maps_limit' );

    and that effected the whole system, once removed, everything worked fine, even using my own themes.

    Thanks again

    Reply To: pages & media disapear until search for ?
     
    #1

Share This Page

Monarch Social Sharing Plugin