• Resolved kentopolis

    (@kentopolis)


    function my_post_types($types) {
        $types[] = 'portfolio';
        return $types;
    }
    
    add_filter('s2_post_types', 'portfolio');

    I’m getting this error after putting the above code into my functions.php:

    Subscribe2 will send email notifications for the following custom post types:
    Warning: Invalid argument supplied for foreach() in /home/lovealot/public_html/wp-content/plugins/subscribe2/admin/settings.php on line 222

    https://ww.wp.xz.cn/plugins/subscribe2/

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

The topic ‘custom post types error’ is closed to new replies.