Quantcast
Viewing all articles
Browse latest Browse all 22096

dishditty on "[Plugin: WPtouch Mobile Plugin] Custom post type won't stay selected"

When using the wptouch plugin, I can 'Enable custom post-type support', but when I try to choose a custom post type that was added from my theme, it does not stay selected and the custom post does not show up on the mobile site. If I select a custom post type from a plugin, it works fine.

I read on another forum post that I could just re-register the custom post type in the functions of the wptouch plugin, but I tried and it still did not work. Could you tell me the exact file location to register the plugin? This is the registration code used in the theme:
$labels = array(
'name' => __('Recipes', 'FoodRecipe'),
'singular_name' => __('Recipe', 'FoodRecipe'),
'add_new' => __('Add New', 'FoodRecipe'), __('Recipe', 'FoodRecipe'),
'add_new_item' => __('Recipe', 'FoodRecipe'),
'edit_item' => __('Edit Recipe', 'FoodRecipe'),
'new_item' => __('New Recipe', 'FoodRecipe'),
'view_item' => __('View Recipe', 'FoodRecipe'),
'search_items' => __('Search Recipes', 'FoodRecipe'),
'not_found' => __('No Recipes found', 'FoodRecipe'),
'not_found_in_trash' => __('No Recipes found in Trash', 'FoodRecipe'),
'parent_item_colon' => ''
);

$supports = array(
'title',
'editor',
'thumbnail',
'categories',
'comments',
'excerpt',
'author'
);

register_post_type( 'recipe',
array(
'labels' => $labels,
'public' => true,
'menu_position' => 5,
'hierarchical' => true,
'supports' => $supports,
'taxonomies' => array('recipe-type', 'post_tag', 'category'),
'rewrite' => array( 'slug' => __('recipe', 'FoodRecipe') )
)
);

Any help would be appreciated. I've been struggling to get custom posts to work with any of the wordpress mobile plugins, and this is the one that comes the closest.

https://wordpress.org/plugins/wptouch/

[Moderator Note: No bumping. If it's that urgent, consider hiring someone instead.]


Viewing all articles
Browse latest Browse all 22096

Trending Articles