WordPress.org

Ready to get started?Download WordPress

Forums

Domain Mapping System
[resolved] Map to Custom Post Types (11 posts)

  1. Donnacha
    Member
    Posted 2 years ago #

    Hi,

    I think DMS is wonderful.

    I have a feature request: mapping domains to custom post types.

    As pages are merely a special type of post, would it be difficult to add this capability?

    Thanks for creating DMS!

    http://wordpress.org/extend/plugins/domain-mapping-system/

  2. deniaz
    Member
    Plugin Author

    Posted 2 years ago #

    Hey there

    Cheers! Happy to see people using DMS.
    Well, I haven't thought about it yet, but I'll look into it this week.
    I'll report back asap.

    Regards

  3. deniaz
    Member
    Plugin Author

    Posted 2 years ago #

    So, I got bored this afternoon ;)
    I've just released DMS 1.2 with support for custom post types.
    I'd really appreciate it, if you could give it a shot and give feedback. Thanks a lot!

  4. Donnacha
    Member
    Posted 2 years ago #

    Wow, that was incredibly fast, thank you so much Robert!

    There seems to be a problem with 1.2:

    On the DMS Options page, the Page/CPT select dropdown is empty.

    I am testing it on a fresh installation of WP 3.3.2 with no other plugins activated.

  5. Donnacha
    Member
    Posted 2 years ago #

    Further testing reveals that the Select dropdown DOES work, but only after you have created your first custom post type.

    It did not work after creating my first page (in addition to the "Sample Page" included in every fresh installation of WordPress) but, once I had made my first CPT, both pages and custom post types appeared in the Select dropdown.

  6. Donnacha
    Member
    Posted 2 years ago #

    By the way, the mapping to custom post type worked wonderfully, thank you so much!

  7. deniaz
    Member
    Plugin Author

    Posted 2 years ago #

    Thanks for the testing! :)
    Sounds strange, I'll look into it tomorrow. Glad it works overall, though.
    I'll let you know when I've fixed the issue.

    CPT support sounded like a good idea, so I'm happy I could help.

  8. Donnacha
    Member
    Posted 2 years ago #

    It more than a good idea - I think most people currently using WordPress Networks will be thrilled when they realize how much more easily DMS can achieve the same effect, especially with the combined flexibility of custom templates and Custom Post Types

    I am still have teething problems, however, with getting CPTs to appear in the Select dropdown. I was unable to reproduce my earlier success, when I was able to get both pages and CPTs to appear by creating a first CPT. Now that only makes the pages appear, the CPTs remain missing.

    I am testing using several different installations of WordPress but have been unable to reproduce whatever it was that made DMS recognize the CPTs earlier.

  9. deniaz
    Member
    Plugin Author

    Posted 2 years ago #

    Good morning Donnacha

    It was a stupid programming mistake. I've fixed it and tested the code with pages and two different CPT. I believe the reported bug is now fixed.

    The problem appeared, when no CPT were registered - as I said, a stupid programming mistake.

    You can download the fixed Version (1.2.1) here.

    As soon as you verify the fix, I will mark this version as stable :)

    Edit: btw, only public and non-builtin (the builtin ones are Pages, Posts, Attachments, Revisions, ...) CPT + Pages appear. I can change this though if you wish.

  10. Donnacha
    Member
    Posted 2 years ago #

    Hi again Robert, apologies for this delayed reply.

    Yes, 1.2.1 works flawlessly, you've done a great job!

    Personally, I will only be using pages and CPTs but adding the option of using built-in ones too would be a good idea if you think it would not add too much complexity; I can guess that, once DMS starts becoming popular, you will get a lot of requests from users who want to map to normal posts.

    My next plan is to test just how far I can take DMS - it will take some time but I am going to map a few hundred domains to just one installation of WordPress, I will let you know how it goes :D

  11. deniaz
    Member
    Plugin Author

    Posted 2 years ago #

    No worries.

    Great to hear!
    Alright, I'll think about how to do this in a good way for the next release. It could be useful to map domains to posts, but I don't see it with other types.

    Oh god, I'm looking forward to the result ;)
    Thanks for your support, Donnacha!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags