Support » Plugin: Custom Post Type UI » Custom Post type and Visual Composer grid block

  • Resolved fluido21

    (@fluido21)


    Hi Im trying to show my custom post (that I had created with CPT UI)
    ON VISUAL COMPOSER grid, but is not showing on the post list…
    I contacted Visual composer support and they sent me this:

    ///Make sure the plugin registers the CPT with a low priority. If not, add a low priority for it for eg:

    add_action(‘init’, ‘register_apt’, 1);

    If you are not sure of where the registration function of the plugin is, than you can ask the plugin author for its location. Kindly check.///

    where I can modify this to make it work??
    would be nice to have the option to use the custom post on the visual composer to show all the post on a responsive grid!!!

    Thanks for any help.

    https://wordpress.org/plugins/custom-post-type-ui/

Viewing 3 replies - 16 through 18 (of 18 total)
  • Hi Michael,
    This worked for me. Using WP 4.3.1 + VC 4.7+.

    add_action( 'init', 'cptui_create_custom_post_types', 9 );

    I would like to add that by setting the value to “9”, the problem of VC’s new “frontend” editor is solved. By default, VC’s frontend editor will send CPT UI’s custom posts into an endless loop in this mode (VC’s logo keeps on looping).

    Can’t thank you enough for this elegant solution.

    Plugin Author Michael Beckwith

    (@tw2113)

    The BenchPresser

    Good to know that 9 works instead of needing to go all the way to priority 1.

Viewing 3 replies - 16 through 18 (of 18 total)
  • The topic ‘Custom Post type and Visual Composer grid block’ is closed to new replies.