Solved

Wordpress Menus how to use a variable?

Posted on 2014-02-07
2
311 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

Question has a verified solution.

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

How to create your own WordPress Theme Before I begin with the theme design tutorial, I would like to give you the basics of what is required to make a WordPress Theme. The most basic WordPress theme only requires 2 files: a style.css file and an…
I annotated my article on ransomware somewhat extensively, but I keep adding new references and wanted to put a link to the reference library.  Despite all the reference tools I have on hand, it was not easy to find a way to do this easily. I finall…
The purpose of this video is to demonstrate how to properly insert a Vimeo Video into a WordPress site or Blog. This will be demonstrated using a Windows 8 PC. Go to your WordPress login page. This will look like the following: mywebsite.com/wp…
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…

751 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