Solved

Wordpress Menus how to use a variable?

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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
WordPress Header Issue 9 46
remove background quote mark from widget 6 50
Can you send emails to checkbox selection in contact form 7 Wordpress 6 25
Wordpress Taxonomy 2 27
How to install BuddyPress on your self-hosted WordPress site It’s been called everything from “social networking in a box” to “Facebook without the terms of service,” but until Feb. 16, BuddyPress was a relatively unknown outside the WordPress MU…
Transferring a wordpress site from a host or local dev server to another host can be a pain. So I've included my steps on how I have accomplished this task. Steps include an assumption that you have Cpanel access or Ftp access.. If you do not hav…
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…
This video teaches users how to migrate an existing Wordpress website to a new domain.

776 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