• Resolved Mina Nielsen

    (@moorlater)


    I just wasn’t able to get custom templates working with WCK (single-post_type.php, archive-post_type.php etc).

    In the end, because I was using Bones Theme, I’ve used that theme’s notated examples to define my custom post types instead.

    Still, it would be good to know if WCK is theoretically supposed to work with WordPress custom post and archive templates, or if there’s anything special I’d need to do to make that work.

    https://wordpress.org/plugins/wck-custom-fields-and-custom-post-types-creator/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author adispiac

    (@adispiac)

    This shouldn’t happen. WCK works out of the box with WordPress custom post and archive templates.
    If the custom post types were created correctly and appear in the WP back-end menu, the only thing that comes to my mind is to make sure you’ve set the Has Archive argument to “True“.

    Thread Starter Mina Nielsen

    (@moorlater)

    Thanks for confirming.

    The Has Archive argument was set to “True”. So there must have been something else the matter, either with the theme or with that specific WP install. As I chose a different approach to meet the deadline, I’ve got no further info though 🙁

    But in future at least I know it should work.

    Plugin Author adispiac

    (@adispiac)

    Yes, it should definitely work.
    Since creating the custom templates is the usual step after creating the CPTs, custom fields and taxonomies, we took it further and added the Swift Templates modulein PRO, which allows you to create the front-end templates directly from the WP admin UI, no coding required. Maybe it will be of use in the future.

    Thread Starter Mina Nielsen

    (@moorlater)

    Does the Swift Templates module play nicely with ACF?

    Plugin Author adispiac

    (@adispiac)

    Rigth now it only works with custom fields and CPTs created with WCK. We’re planning to add compatibility with other plugins in the near future, ACF included.

    Thread Starter Mina Nielsen

    (@moorlater)

    Cool 🙂

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Custom template files’ is closed to new replies.