Skip Navigation

[Resolved] Show content based on url (subdomain)

The Toolset Community Forum is closed, for technical support questions, please head on to our Toolset Professional Support (for paid clients), with any pre-sale or admin question please contact us here.
This support ticket is created 8 years, 1 month ago. There's a good chance that you are reading advice that it now obsolete.
This is the community support forum for Types plugin, which is part of Toolset. Toolset is a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients and people who registered for Types community support can post in it.

Sun Mon Tue Wed Thu Fri Sat
- 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 -
- 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 -

Supporter timezone: Europe/London (GMT+00:00)

This topic contains 1 reply, has 2 voices.

Last updated by Nigel 8 years, 1 month ago.

Assisted by: Nigel.

Author
Posts
#442368

Hello,

What I'm trying to do is the following:

I want to created a conditional output based on the subdomain entered and use that in a template page, so

if 'sub1.mydomain.com' is entered I want to display all the myproducts (CPT) that has the custom field subdomain = 'sub1' set.

Or I think about put something in the .htaccess to redirect all the subdomain with a variable after it, eg.

'sub1.mydomain.com' redirect 'sub1.mydomain.com/?subdomain=sub1'

Hope someone has some suggestions for me.

#442636

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Hi Walter

I see you posted the same question in the Toolset Professional Forum, and I will answer you there.

The forum ‘Types Community Support’ is closed to new topics and replies.