BuddyDev

Search

[Resolved] What am I doing wrong? I want to see a grid of galleries when i go to this page:

  • Participant
    Level: Initiated
    Posts: 7
    Kim on #8956

    Hello,

    http://bayareagolf.org/gallery/

    It tells me there are no galleries, but if I click on the All Galleries above that statement, it appears to reload the same page and displays the galleries.

    I expect to see a grid of all of the available galleries on page load, is this not how it should work?

    Thank you for your time.

  • Participant
    Level: Initiated
    Posts: 7
    Kim on #8957

    Oh also, the widget on the home page in the left column also states there are no galleries.

  • Keymaster
    (BuddyDev Team)
    Posts: 24190
    Brajesh Singh on #8958

    Hi Kim,
    Welcome to BuddyDev.
    I just checked( sorry I could not reply on the wp.org topic) and I can see the problem.

    One of the plugin or theme or some code is modifying pre_get_posts filter on your site incorrectly. Since MediaPress uses WP_Query internally, the MediaPress loops are being affected.

    The code in question is not modifying the filter on ajax, that’s why the ajax filtering is working.

    Do you have any plugin that you can guess can be doing it?

  • Participant
    Level: Initiated
    Posts: 7
    Kim on #8961

    THANK YOU, I have no idea which plugin, but I appreciate your quick reply. I am not sure how to figure this out, other than disabling plugins. or searching through them for pre_get_posts

    when I figure it out I will be back. thanks again!

  • Participant
    Level: Initiated
    Posts: 7
    Kim on #8962
    This reply has been marked as private.
  • Participant
    Level: Initiated
    Posts: 7
    Kim on #8963

    Hi Yogi, let me check the theme.

  • Participant
    Level: Initiated
    Posts: 7
    Kim on #8964

    Hi Yogi,

    YOU ROCK!

    I found it, it was in the theme !

    I would’ve never figured that out without you!

    Thanks a million!

  • Keymaster
    (BuddyDev Team)
    Posts: 24190
    Brajesh Singh on #8965

    Hi Kim,
    Thank you.

    It is a pleasure to assist 🙂

    Also, In future, if you need to search for hook, Here is a plugin that helps greatly
    https://wordpress.org/plugins/simply-show-hooks/

    Have a wonderful day!

    Regards
    Brajesh

  • Participant
    Level: Initiated
    Posts: 7
    Kim on #8966

    Hi Brajesh,
    Thank you for the plugin help.
    I am almost there, the widget is not playing nicely with the homepage. Can oyu offer any assitance there?

    please note, it is a different website address.

    http://bayareagolf.review-mysite.com/

    thank you

  • Keymaster
    (BuddyDev Team)
    Posts: 24190
    Brajesh Singh on #8969

    Hi Kim,
    Thank you.

    That is a css issue on our part.
    Please put this line in your stylesheet

    
    
    .mpp-g {
    display: block !important;
    }
    
    

    That will fix it.
    Hope that helps.

The topic ‘ [Resolved] What am I doing wrong? I want to see a grid of galleries when i go to this page:’ is closed to new replies.

This topic is: resolved