My child theme inlcudes php as well as css files. Whenever I switch to a different theme for mobile browsers it works but the custom post types, cats etc are missing in action. I am kind of lost.
Your problem is that you’re doing too much with the theme. Themes are all about presentation, not about functionality. If your child or parent theme is defining a custom post type (as I infer from your question), then you’re doing it wrong.
When the mobile plugins serve up a different theme for your site, they ignore the main theme for your site entirely. That means no CPT support on the mobile side unless you rewrite the mobile plugin yourself.
So, instead, spin off your CPT definitions into a plugin so that they’re still available to the mobile version of your site.
Related Posts:
- Change slug of registered custom post type in child theme
- Custom post types and child theme
- Add pre-existing meta box to new custom post type
- How to remove thumbnail sizes for specific post type on a child theme?
- Change labels of custom post type via child theme
- Create a post in custom post type using field in registration form after users submit form
- Need help targeting a custom post type with conditional tags
- Plugin: register custom post types, child ready and performance best practices
- making available just some parts of theme option
- Rewrite post type slug only for child theme
- How do I amend the have_posts function to include custom posts?
- Don’t know how to show custom taxonomies from a custom post_type
- Custom shortcode works in Elementor editor but not on frontend
- why post_class() function apply css classes to all other files?
- Child theme blocks post from publishing [closed]
- Changing CPT slug and taxonomy already registered in parent theme
- Overriding Plugin Function in Child Theme
- Removed custom post type archive page shows blog page
- What happens to my older posts if I switch to a child theme?
- How do I add new post formats to twenty fourteen theme?
- How to create a archive template for custom post type [duplicate]
- Extend Custom Post Type
- Insert custom fields to a custom post type
- Get only parent post in archive post
- In child theme, add CPT to custom taxonomy registered in parent theme
- Auto generate excerpt from ACF field on a CPT that does not support excerpt or content
- How to use POST method using custom wordpress button?
- custom post type does not working when adding in child theme function
- Child Theme problems
- Cannot modify a registered custom post type rewrite slug
- Custom Post Types and Child Themes!
- Having some trouble properly displaying Custom Post Types in templates
- How to add a custom post type in child theme? (WordPress > 3.0)
- How do I use CPT and permalinks with a mobile theme?
- Test if a Category contains certain Custom Post Types
- How can I show template dropdown in custom post type?
- Marking future dated post as published
- Custom Taxonomy as checkbox or dropdown
- Page as child in custom post type slug?
- Is it proper to create a page just to generate a listing page (eg. for a custom post type)
- How to quickly switch custom post type singular template?
- Post metadata deletes itself
- Get latest 4 post on a custom post filtered by category
- How can you use custom types/taxonomies? [closed]
- Get child terms of current term of the current post
- Remove Post Page “View Post” Link
- Turn query string to sub page
- WordPress Template Hierarchy
- Taxonomy structure of Sport site
- How to get all posts except for one post from a certain custom post type?
- Create a random unique 6 digit number as custom field for custom post type
- Custom Post Types not showing, custom WP_Query
- Using My-Meta-Box-Class plugin, how is ‘Date’ value stored?
- Custom post types instead of regular post’s categories in a page template
- List children on child post
- Multiple TinyMCE editors in dynamically generated textareas
- How can I set taxonomy programmatically
- Return the latest post from a custom Taxonomy and Post Type
- WordPress loop: Show only a Custom Post Type Taxononmy TERM
- post meta parameter in post custom-post-type endpoint with restapi
- Filter custom posts by multiple taxonomies
- Create a Custom Post from within another Custom Post
- Add update or delete database records using custom post type
- Featured image in CPT overview column
- How to group posts and get a mixed posts and groups view?
- How to show featured image block in custom post type for Author?
- dropdowboxes with pre-selected custom fields optios that filters the results according seach needs
- Display Repeatable Meta Box Content
- Control content before and after custom post type loop
- Showing custom post type categories in the menu
- Convert comma separated list to serialized array to import as post meta
- Distribute Custom Post in different pages
- Problem with Apply Filters on URL in meta box filed of custom port type
- Improve Custom Post Permalink Structure
- Loop for custom-post-type comparing taxonomy terms for “related” posts?
- Creating custom post type and taxonomy archives and pretty URLs
- How do I add multiple post types to this query?
- Using custom post type as front home page pagination not working
- Migrate Custom Post Type with Custom Fields data and parent child order
- Archive page for WordPress Custom Post Type doesn’t show pagination from paginate_links()
- How to create review point system for CPTs (many-to-many relationship)
- Register custom_post_type from static function
- Custom post type single page returns 404
- localize_script or rest api
- WP_Query with all posts in one custom post type and only posts in another custom post type with a specific category
- Add content to wordpress edit.php page
- Show posts under a selected custom taxonomy term
- Wrong post ID in meta box callback
- Linking Taxonomies
- Get number of posts by a user (draft, pending review & published)
- How can I generate a list of post-type specific categories?
- Publish post and create additional posts with same content
- New WP_Query not isolating custom post types on front-page template
- Excert ( the_excerpt(); ) Not working properly
- Keep same archive.php for post from archive?
- Pagination not working on homepage
- How to query custom post then display sections by meta value
- A to Z list for custom post types
- What Is My Fault With This WP_QUERY ? [ Pagination Problem ]
- Sort ACF by custom taxonomy