• Home
  • Features
    • Membership Software
    • Member Directory
    • Event Calendar & Registration
    • Member Billing & Online Payments
    • Donations, Shopping Carts & Forms
    • Job Board
    • Announcement Board
    • Classified Ads
    • Members Only Website
    • Website Integration
      • WordPress
      • Squarespace
      • Weebly
      • Without Code
      • Duda
      • Wix
      • HTML5
    • Integrations
    • International
  • Sign Up
    • Pricing & Sign Up
  • Customers
    • Customer Sign In
    • Getting Started
      • MembershipWorks Hosted Website
      • WordPress Plugin
      • Squarespace
      • Weebly
      • Without Code
      • Wix
      • HTML5
    • Customer Websites
  • Developers
    • Find a Developer
    • Create a Developer Listing
    • Manage Developer Listing
  • Demo
    • WordPress Demo
    • Squarespace Demo
    • Weebly Demo
    • Without Code Demo
    • Duda Demo
    • Wix Demo
    • Video Demo of Admin
    • Schedule a Personal Demo
  • About
    • Contact Us
    • Cancel/Suspend Account
    • Schedule a Personal Demo
    • Schedule a Personal Training Session
    • Our Blogs
      • Guides
      • Best Practices
      • Secret Confessions of an ED
      • WordPress with the Light On
    • New Features
    • Careers
    • System Status
Schedule Demo

Discover our membership software with a one-on-one personalized demo:

Schedule a Demo
CMS Integrations

Integrate with WordPress, SquareSpace, Weebly and more.

Learn More!
MembershipWorkslogo

WordPress 4.0 Broke the Main Menu with Your Theme? Read on…

Posted on Sep 14, 2014 by Aikmeng KuahMar 18, 2020

WordPress 4.0 appears to have altered the way the main navigation menu is retrieved. Previously, themes would use:

wp_nav_menu();

where they needed the main menu to appear. With WordPress 4.0, this behavior has been altered. Instead you will need to use:

wp_nav_menu(array('theme_location'=>'primary'));

Without indicating that you need to use the “Primary” menu, wp_nav_menu() will fall back to wp_page_menu().

GoToOlder PostNewer PostAll PostsWordPress with the Light On

About Aikmeng Kuah

I'm co-founder and CTO of MembershipWorks. I've been writing code since the Apple II, in a variety of languages including x86 assembly, 68000 assembly, Pascal, Prolog, dBase, C, LISP, SQL, PHP and Javascript. I work on the full stack, from the web site design, front-end web app, back-end servers, database and API. I am a graduate of Carnegie Mellon University (BS) and University of Texas at Austin (PhD).View all posts by Aikmeng Kuah

Comments are closed.

  • Home
  • Features
  • Sign Up
  • Customer Sign-In
  • Terms of Service / Privacy
  • Developers
  • Contact