• Resolved Mohammed Gritli

    (@mrjoker-1)


    Dear developers,
    good day…

    i’ve been using wordpress since along time.
    Reently, i started noticing something wiered.
    pages & media disapear from wp dashboard until you search for it, which is annoying. i think this could be done by a plugin, so i tried disabling all plugins, but ths never fixed the problem.

    is this a bug, can anyone work on a fix ?
    kind regards.
    – Mohammed Gritli
    php developer

Viewing 3 replies - 1 through 3 (of 3 total)
  • Is WordPress itself up to date? and what theme are you using? Have you tried not only disabling plugins but using one of the default themes?

    Thread Starter Mohammed Gritli

    (@mrjoker-1)

    First of all, Thanx @keithdriscoll for your reply,
    Yes, WordPress is up to date, however, the theme is my own creation, when i switched to default theme, it all worked fine !!!

    could this be one of my functions causing this trouble, ?
    i’ll try deleting unnecessary functions.

    Thanks for the heads up <3
    Regards

    Thread Starter Mohammed Gritli

    (@mrjoker-1)

    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

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘pages & media disapear until search for ?’ is closed to new replies.