Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I'm working on a site that is going to have two parts. Its going to have the regular marketing website and its going to have lots of landing pages constantly being drafted up to test things. My questions is how do I categorize the landing page template to automatically insert a /lp/ at the end of the url so we always know its a landing page. So instead of www.website.com/page1 I want it to be www.website/lp/page1 and I want that done as soon as they pick that specific landing page template. Ive built my template and everything works great I just don't know how to get the /lp/ to dynamically appear.

share|improve this question
    
Have a look here and if you get stuck it's advised you edit your question with an example, codex.wordpress.org/Rewrite_API/add_rewrite_tag –  Wyck Jul 2 at 3:22
    
@Wyck thanks! I just ended up making a parent page called lp so that it sticks the /lp/ infront of all of my landing page urls –  Bs3kg Jul 2 at 12:52

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.