WordPress.org

Ready to get started?Download WordPress

Forums

Extra variable to page url? (2 posts)

  1. promich
    Member
    Posted 1 year ago #

    Good evening everybody,

    I have a little issue and I need your help. The thing is, that i need to modify page link url from header menu, so I can pass extra variable through it.

    The exact example: When I create a page in wordpress, it's default url is http://localhost/wordpress/?page_id=2. All I need is to pass extra variable, so when I click o the created page in menu, it opens like this - http://localhost/wordpress/?page_id=2?option=services

    Is there any chance to do that? I made few divs showing up and hiding depending on url variable option.

    Thanks very much.

  2. vtxyzzy
    Member
    Posted 1 year ago #

    If you only want to change the entry in the menu, you can use a Custom Link instead of just the Page, and enter any URL you wish.

Topic Closed

This topic has been closed to new replies.

About this Topic