WordPress.org

Ready to get started?Download WordPress

Forums

How to make secondary custom URLs? (2 posts)

  1. CoastalData
    Member
    Posted 3 years ago #

    Hello, I have a wordpress site that I'm developing for a travel company, and they blog about the trips that they're running, and create nice seo friendly permalinks, which look something like this:

    mysite.com/awesome-trip-to-alaska

    Each of these trips, though, has a number associated with it, and I want to be able to auto-generate links to trips by number, maybe something like this:

    mysite.com/TripNo/1234

    To support this, I've added custom fields to those trips where the custom field name is "TripNo", and the value is the actual trip number associated with the trip.

    I'm not sure where to go from here, though... Is there support for this already in WP, or do I need to do some additional coding, or is there a plugin, or maybe I need to do some combination of those things along with custom markup to accomodate url re-writing in the .htaccess of the site?

    Any ideas? All are appreciated!

    Thanks in advance,

    --Jon

  2. CoastalData
    Member
    Posted 3 years ago #

    BTW, I did already discover a way whereby I could use a "search link" like this:

    mysite.com/?s=1234

    But the problem with that link is that it gives only a synopsis of the page, not the page itself; granted, you can then click on the page name at the top and THEN you get the actual page, but the client doesn't like that, and wants the link to go right to the page itself.

    --Jon

Topic Closed

This topic has been closed to new replies.

About this Topic