• Resolved vuko

    (@vuko)


    I entered the code in the functions , but in my custom post type does not work. What can I do to fix ?

    thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Andy Mercer

    (@kelderic)

    Not sure what to tell you. Check your code for typos maybe. I know that the filter works because I just used it last week in a client site.

    Try removing other plugins to see if there is a conflict.

    still having a same issue not using any other plug in when i add this in my theme function.php nothing happen

    function add_featured_galleries_to_ctp( $post_types ) {
    array_push($post_types, ‘custom_post_type’); // ($post_types comes in as array(‘post’,’page’). If you don’t want FGs on those, you can just return a custom array instead of adding to it. )
    return $post_types;
    }
    add_filter(‘fg_post_types’, ‘add_featured_galleries_to_ctp’ );

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘not work with with the custom post type’ is closed to new replies.