WordPress.org

Ready to get started?Download WordPress

Forums

MobilePress
[resolved] Custom Post Type Permalink - 404 page not found (2 posts)

  1. acrane
    Member
    Posted 10 months ago #

    Permalink structure is working for Desktop on Custom post type but not on mobile

    This works
    http://olive.bellaworksweb.net/recipes/olive-oil-ice-cream-with-blood-oranges/

    This returns a 404.
    http://olive.bellaworksweb.net/recipes/olive-oil-ice-cream-with-blood-oranges/?mobile

    This url viewed on mobile device also returns a 404
    http://olive.bellaworksweb.net/recipes/olive-oil-ice-cream-with-blood-oranges/

    trying to target a single-recipes.php template file in my mobile theme to show my recipe.

    http://wordpress.org/plugins/mobilepress/

  2. acrane
    Member
    Posted 10 months ago #

    Well I solved it.

    Because The mobile theme is a completely different set of files, it does not have access to the custom post type I defined in my functions file in my desktop version template. So I followed Otto's suggestion to put all themes functions into a plugin (was really easy) so that any template can have access to the CPT and use the accordingly. Tutorial can be found here > http://ottopress.com/2011/creating-a-site-specific-snippets-plugin/

Reply

You must log in to post.

About this Plugin

About this Topic