Solved

Wordpress Menus how to use a variable?

Posted on 2014-02-07
2
309 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Form Submit falis 6 45
Contact Form 7 3 29
How to change the "customer reviews" text near the star rating on Woocommerce product pages? 5 45
Remove a page from Google? 2 38
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…
What's this? As a volunteer Page Editor for Experts-Exchange.com, I have noticed that many authors also have blogs, and pull articles from their blogs to post at Experts-Exchange. I appreciate each author sharing their blog content with our site …
This video teaches viewers how to create their own website using cPanel and Wordpress. Tutorial walks users through how to set up their own domain name from tools like Domain Registrar, Hosting Account, and Wordpress. More specifically, the order in…
The purpose of this video is to demonstrate how to set up an RSS Feed on a WordPress Website. This will be demonstrated using a Windows 8 PC. Feedburner will be used for this demonstration. Go to your WordPress login page. This will look like the…

679 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