WordPress.org

Forums

[resolved] Setup custom URLs (like in Drupal)? (6 posts)

  1. rapsli
    Member
    Posted 2 years ago #

    In Drupal it is really easy to setup a custom URL. Let's say, I want to create some custom functionality xyz (for example a very special contact page). I would just do some Drupal magic and then I could point my browser to /functionality_xyz and I would see the content of what I have specified in that function that gets called for this URL.

    Is there any way to do something like that in WordPress? So far I've only seen embed codes that would get embedded in a page.

  2. esmi
    Forum Moderator
    Posted 2 years ago #

  3. rapsli
    Member
    Posted 2 years ago #

    hm? Not sure how to understand this. Basically what you are saying: It's not possible to create an URL that lives outside of a Post/Page?

  4. michael.mariart
    Member
    Posted 2 years ago #

    No, I don't believe that you can. WordPress uses the content types to serve up it's content, so everything has to be a content type in order to work.

    For what you've described, I'd suggest looking at shortcodes. These will let you insert any "custom" content and programming logic into a post or page where ever you want it to go. You can use it on any page, or multiple pages.

  5. vjpo
    Member
    Posted 2 years ago #

    + Page Templates and many more...

  6. rapsli
    Member
    Posted 2 years ago #

    thanks. That's too bad, but then on the other hand it also adds some more flexibility. Guess have to get used to the wp mindset.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.