Solved

Wordpress Menus how to use a variable?

Posted on 2014-02-07
2
296 Views
Last Modified: 2014-02-07
Greetings,
  I'm looking for a way to use a variable in the menu item add of wordpress.

for adding categories to the menu, something like BASE_URL + portfolio_entries/prottfolio/
something I can just enter initially when the menu link is made.

so that I can run a test site and not have the links jump to the live site, and not have to search and replace every time I want to test something.

I've done some searching and am hopefully just missing a simple thing.
0
Comment
Question by:R. Andrew Koffron
2 Comments
 
LVL 14

Accepted Solution

by:
Dzynit earned 500 total points
ID: 39842311
To do that, you would be using the custom link choice in the appearance > menu rather than just selecting the pages/categories and adding to the menu. So it would be much easier to just completely leave off the domain part of the url. Such as /portfolio_entries/portfolio/

No matter where the site is, those links will remain on the current domain.
0
 
LVL 16

Author Closing Comment

by:R. Andrew Koffron
ID: 39842377
hahaha I knew it was something super simple, I tried that but must have typoed or left off the / on accident, thanks
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Who says nothing in life is free? WordPress.com is a freebie. WordPress.org's downloadable publishing platform is free. Heck, even WordPressMU is free. WordPress is an open source project, which means it can be used on any personal or commerc…
Like there are many different versions of Wordpress, there are also a handful of related side projects WordPress users should be familiar with.   All of these projects are open source and GPL licensed, which means there are few restrictions to us…
The purpose of this video is to demonstrate how to manually back up a WordPress Database. This will be demonstrated using a Windows 8 PC. The Host used will be IPage.com Log into your Hosting account. IPage will be used for demonstration : Locat…
The purpose of this video is to demonstrate how to set up the permalinks on a WordPress Website. This will be demonstrated using a Windows 8 PC. Go to your WordPress login page. This will look like the following: mywebsite.com/wp-login.php : Go t…

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now