0

I have a question regarding PHP and Wordpress.

I recently started using Wordpress for a simple website but there is still one thing that I just don't understand. Lets say I made a cool website in php that also cointains my header, my footer and my menu. How do I implement the Wordpress CMS so that someone else can add an item in the menubar that I made, instead of adding an item in a theme made by someone else? I have a hard time finding such tutorials because most of them are for people with no programming interests and because of that they don't explain such things.

3
  • 1
    Look into Theme Development. Commented Apr 18, 2013 at 12:32
  • Do you know if there are any visual (video's pref) tutorials aswell? Commented Apr 18, 2013 at 12:34
  • Nettuts usually put together good video tutorials. Commented Apr 18, 2013 at 12:50

1 Answer 1

1

If your only concern is how to connect your menu to the wordpress admin, you can check this link: wp_nav_menu()

that wordpress function will then generate a list of the menu items you add on the admin.

For example use this on your theme to display a menu from the admin with the name "Main Menu":

<div class="my-menu">
    <?php wp_nav_menu(array('menu' => 'Main Menu' )); ?>
</div>
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.