• Resolved omarperezdev

    (@omarperezdev)


    Will this work for custom post type where all posts in the custom post type follow the mobile version layout created with scfm for that custom post type

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Jose Mortellaro

    (@giuse)

    Hi @omarperezdev

    With the free version it works only for pages and blog posts, and you need some custom code. For custom post types you will need the PRO version, but it’s still under development and not ready yet.

    With the free version if you need to use a different template file on mobile, you can copy the template file of your theme and put it in one of these folders:

    wp-content/scfm/

    wp-content/themes/theme-name/scfm

    For example, if your theme is “theme-name” and you want to load a different single.php on mobile, it will be something that looks like this:

    wp-content/scfm/single.php

    or

    wp-content/themes/theme-name/single.php

    In the case of mobile devices, Specific Content For Mobile will look for the custom template file first in wp-content/themes/theme-name/scfm and if it doesn’t find it in wp-content/scfm.

    But this works only for the template files that are called by WordPress, not those ones called from the theme or plugins.

    With the PRO version, it will be possible to do what you asked. I hope it will be ready soon.

    Best regards

    Jose

    Thread Starter omarperezdev

    (@omarperezdev)

    I’m using a plugin to create custom post types so i guess i will just have to wait for the pro version is there a beta we can look into in a previous post you provided this

    the new version is still not public, but if you want you can try the beta version 0.1.5.1 that you can download with this link: https://downloads.wp.xz.cn/plugin/specific-content-for-mobile.0.1.5.1.zip

    add_filter( 'eos_scfm_post_types','my_custom_scfm_post_types' );
    //It adds custtom post types to the array of post types managed by Specific Content For Mobile
    function my_custom_scfm_post_types( $post_types ){
      $post_types[] = 'custom_post_slug';
      return $post_types;
    }

    will this still work?

    Plugin Author Jose Mortellaro

    (@giuse)

    Hi @omarperezdev

    the current official version supports the code that you posted, but I can’t give more support for this custom code. As it is now, on some installations you have no problems, on others, you may have some problems.

    For having a solution that always works you need to wait for the PRO version.
    As soon as I have a beta version of the PRO I will be happy to give it to you. We will surely need beta testers. But now it’s too early.

    Maybe write me a message using the contact form at https://josemortellaro.com/contact/, so if this thread is closed for new reply I will be able to contact you.

    It may require a couple of months before the first PRO beta version is ready.
    I would not rely on the PRO version if it is a problem to be solved in a short time.

    Have a great day!

    Jose

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Custom Post Type?’ is closed to new replies.