• Hello ??

    I was going to manually create a new custom post type and I did not want to use a plugin for this, rather manually code the custom post type in my functions.php file, but I use 2 themes, one for mobile and one for desktop… and “any mobile theme switcher” to switch themes based on the users device.

    So now I’m a bit concerned because if the custom post type is in my functions.php, will the custom post type work properly through the other theme or do I need to create the custom post type there too?

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi miketopher,

    you can put the code of custom post type in a plugin file, by doing this that CPT will be accessible through all themes and you dont have to worry about mobile theme or desktop theme ??

    Regards,
    Swayam

    Thread Starter miketopher

    (@miketopher)

    Thank you Swayam, but then this brings me to my original “not wanting to use a plugin for creating CPT’s” I’m trying to keep my site clean of plugins as eventually I feel there will be conflict.

    But I’m probably over thinking it.. ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Create a custom post type, but I use separate Desktop & Mobile theme’ is closed to new replies.