Custom code to show pages or subpages

Forums Forums Menus Custom code to show pages or subpages

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #560
    Anonymous
    Member

    Hi
    i just wrote you a post which i guess is still waiting for moderation so i hope i’m still in time. I asked you if i can write php code or wp tags in the custom field.
    Reading some post in this forum i wonder if i can link the sub menus to pages programatically (i’m doing statically right now).
    I mean..this i the structure of my menu (inserted through the custom code field):
    menu1
      subMenu1 (links to page1)
      subMenu2 (links to page2)
    menu2
      subMenu1 (links to page3)
      subMenu2 (links to page4)
    and so on.
    How can i code this with php instead of using plain html, assuming that pages cannot be divided in categories?

    Many thanks
    Vitto

    #4821

    Huh?

    I’m kinda lost. What is it you are trying to do?

    You could echo it using PHP, but that doesn’t do anything different to what the plugin already does, so I’m assuming that is not what you are asking about.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.