• Resolved micsu

    (@micsu)


    I have a multisite install of wordpress and am developing a theme for one of the blogs (main blog).
    Suddenly I realized that an empty page using custom-made template searchpage.php includes the responsive menu from wrong blog.

    When I resize the browser to a width over the menu breakpoint, the original menu appears and that is the correct menu.

    Any ideas why that page includes a wrong menu as responsive menu?

    https://ww.wp.xz.cn/plugins/responsive-menu/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter micsu

    (@micsu)

    It seems to be due to the search pages functionality that it’d search for authors from each blog.
    It was looping through $wpdb->get_col(esc_sql(“select blog_id from $wpdb->blogs”), using switch_to_blog and and restore_current_blog at the end. Don’t know for sure why this affected to the menu shown while the loop was in a single function run ni the template but it’s no longer needed and so this is basically resolved.

    Hi micsu,

    Apologies I have been unavailable for the last 2 weeks.

    Great that it appears you got it working again!

    Any problems, please don’t hesitate to let me know.

    Many thanks

    Peter

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

The topic ‘Wrong menu from multisite wordpress in single page’ is closed to new replies.