Support » Plugin: Multiple Domain » Как назначить основной домен?

  • Resolved zdesigns

    (@zdesigns)


    У меня такая проблема. Сам плагин работает исправно, но у меня есть нескоолько других плагинов например как WordPress Automatic и он не может понять какой основной домен использовать. в итоге в DataBase пишутся разные домены. Вопрос. как назначить основной домен? чтоб посты он делал только с главного? и не трогал алиасы?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Gustavo Straube

    (@gustavostraube)

    Hello,

    I don’t speak Russian so I hope the translation I have for your question is correct. So, it depends on why each other plugin needs the original domain where WordPress was installed and how it gets it. In case the plugin filters the URL using the WordPress’ filter API, you could write a filter that uses the constant MULTPLE_DOMAIN_ORIGINAL_DOMAIN to get the domain and replace in the output. On the other hand, if the plugin doesn’t filter the URL, it’s hard to say how you could do that. It may vary considerably according to how the plugin was written.

    Just for me to understand what’s lastly wrong, do the data stored into the database end up incorrect?

    Regards!

    zdesigns

    (@zdesigns)

    Can I give you access to the admin so you understand? the parser takes for some reason sometimes from different domains.

    zdesigns

    (@zdesigns)

    in the database is written way in different ways in the parser

    Plugin Author Gustavo Straube

    (@gustavostraube)

    First of all, I’m sorry for the late response. I got myself busy with other projects.

    Anyway, maybe I couldn’t get what you meant in the latest comments, but it seems the data is randomly stored to the database the way you expect. Sometimes it returns the correct domains, others it doesn’t. I already saw a similar issue while serving a website from my machine with WP-CLI. Is that what you’re using? WP-CLI overrides some filters.

    Regards!

    Plugin Author Gustavo Straube

    (@gustavostraube)

    Hello,

    Since I got no feedback on this issue I’m closing the topic resolved. Let me know in case you’re still seeing errors while using the plugin.

    Regards

Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.