• I have a base WordPress site that is form a non-profit organization. I have written a system in PHP that registers people for a class, verifies that they aren’t taking classes at the wrong time, etc. This is a standalone system and uses its own MySQL database.

    What I’d like to do is now put a menu link on the main WordPress site that links to this standalone registration system. The “start” program of the subsystem is just “registration.php”.

    I thought I could just go to the menu of my wordpress site, configure a custom “link” and it would just launch it. However, that’s not working. So I think I’m having a problem with where it’s located. I put the system in a sub-directory called “registration” and it’s at the same level at my wp-content. Does the registration directory have to be a sub-directory somewhere elee?

    Thanks for any help you might provide!

Viewing 2 replies - 1 through 2 (of 2 total)
  • If you used the same URL in the custom link that you use to get to the other system, it should work.

    Start up the other system by typing its address in the address bar of the browser. Once the site is up, copy the link in the address bar and use that for the URL of your custom link.

    Hi, I have site just like what you are saying.

    Main site: Public Website

    Stand-alone PHP application: Members-only portion of site (not part of WordPress)

    The file structure is just like yours, except the subdirectory is called /members. screenshot

    ADD LINK TO WP CUSTOM MENU
    Telling WordPress the link to use for a menu item can be tricky. If you are using custom menu builder (looks like this) (Admin->Appearance->Menu, depending on your theme), you can add a link to anywhere in the Links section (screenshot). Add the link to the menu, then remember to SAVE the menu.

    ADDING CUSTOM MENU TO THEME
    If that doesn’t do the trick, it is because your theme is not using the menu you created. I am not sure of the easiest way of connecting a custom menu with a template. The way I do it is hard, figured out from the codex. The following codes creates the menu in my templates, from a custom menu:

    $defaults = array(
    		'theme_location'  => '',
    		'menu'            => 'menu-name',
    		'container'       => 'nav',
    		'container_class' => '',
    		'container_id'    => 'nav',
    		'menu_class'      => '',
    		'menu_id'         => '',
    		'echo'            => true,
    		'fallback_cb'     => 'wp_page_menu',
    		'before'          => '',
    		'after'           => '',
    		'link_before'     => '',
    		'link_after'      => '',
    		'items_wrap'      => '<ul id="%1$s" class="%2$s">%3$s</ul>',
    		'depth'           => 0,
    		'walker'          => ''
    	);
    	wp_nav_menu( $defaults );//die;

    Some of it is explained here.

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

The topic ‘How do I launch an external PHP program system from my WP Menu?’ is closed to new replies.