WordPress.org

Ready to get started?Download WordPress

Forums

Custom Content Type Manager
Seems to break Advanced Custom Fields plugin on frontend but n (5 posts)

  1. redesigned
    Member
    Posted 1 year ago #

    Seems to break Advanced Custom Fields plugin on frontend but not in admin.

    When I try and use the get_field() or the_field() functions of Advanced Custom Fields i get blank returns.

    Anyone have any ideas?

    http://wordpress.org/extend/plugins/custom-content-type-manager/

  2. redesigned
    Member
    Posted 1 year ago #

    Solved this by adding a Custom Field in the Custom Content Type Manager for the custom content type and setting the default output filter to get_post for that field.

    After adding one field with this output filter all custom fields are being returned and able to be displayed.

    I can then hide that field using ACF.

  3. fireproofsocks
    Member
    Plugin Author

    Posted 1 year ago #

    Interesting. I'm wary of crossing plugins like this. What exactly does ACF do that the CCTM does not? It would make for a good feature request.

  4. redesigned
    Member
    Posted 1 year ago #

    Advanced Custom Fields is one of my favorite plugins. It allows you to completely customize the fields for any post type in wordpress, including creating repeating and grouped repeating field types, drag and drop galleries, etc. makes entering data a breeze for my clients. It is more advanced then Custom Content Type Manager when it comes to form fields, which isn't the main purpose of the Custom Content Type Manager, just a nice additional feature.

    Since ACF can set those fields based on any condition, including a custom post type, and since Custom Content Type Manager creates and uses the wordpress standards when creating post types they should work together without issue.

    The key for solving my problem was that Custom Content Type Manager can override how custom form elements are passed, shortcode/get_post/etc (about 10 options). So setting a default dummy custom field in Custom Content Type Manager to get_post, makes it set the passing of all custom fields via get_post instead of overriding to a different type. or at least that is why i'm guessing that this workaround works in this case. :-)

    Hope that info helps.

  5. fireproofsocks
    Member
    Plugin Author

    Posted 1 year ago #

    Thanks for the explanation. Can you show me what your template code looks like? I'm having a hard time imagining how using the get_posts output filter can act as a workaround.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic