Setting php page parent level (3 posts)

  1. bmwboarder
    Posted 5 years ago #

    Hi there,

    I have several pages for my website, and a couple of the pages do not show current-menu-item in the menus (top and bottom of page). Because of this, my menu current page css doesn't get applied.

    Example of working page:

    Non-working pages:

    The "projects" portion uses a simple-portfolio plugin, so it is directed by a php file that overrides the "projects" page in the wordpress admin. Is there a way to add to the php that it should have a certain parent (projects)?

    The "press" page also baffles me because it uses a standard page template, though I do pull custom posts, not a standard wordpress loop. It actually does work on the top menu, but not the lower one, even though I use the same code to call the menu (wp_nav_menu(); )

    Any ideas? Workarounds? Many thanks!

  2. Rev. Voodoo
    Posted 5 years ago #


    Possibly related. CPT page templates act real flaky currently. But if you read that thread, WP 3.1 resolved the issue for me with CPT archives.

    As for your projects page, did you set the page up through WP interface and then the plugin controls the output on the page? When creating pages, you can assign parent pages. You could still possibly edit the page to assign a parent

  3. bmwboarder
    Posted 5 years ago #

    Thanks Rev Voodoo. That gives me some direction to go at least.

    I did set up a page in the wordpress admin, for both the project index and press. I've seen the press page work while I was creating it, so I think it has something to do with it using only custom post types, as I'm trying to make it as much of a cms as possible.

    I'll see what I else I can find today.

Topic Closed

This topic has been closed to new replies.

About this Topic