Viewing 4 replies - 1 through 4 (of 4 total)
  • @dustyghost,

    That code needs to go into a new plugin specific for your site (try using Pluginception if you need help there) or into your themes functions.php file. You also need to specify the actual custom post name created on your site.

    Thread Starter DustyGhost

    (@dustyghost)

    Well, I added this to the child theme functions.php

    <?php
    // Nothing here, move along.  This is where you would put custom code.
    
    function my_post_types($types) {
        $types[] = 'comic';
        return $types;
    }
    
    add_filter('s2_post_types', 'comic');
    
    ?>

    However I created and posted a comic and no email was sent.
    Is there something I have done wrong?

    @dustyghost,

    The add_filter line is wrong. The second parameter in the brackets should be the same as the function name (in this case you’ve stuck with the default of ‘my_post_types’) instead of ‘comic’.

    Thread Starter DustyGhost

    (@dustyghost)

    Doh! thank you!
    This now works. ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Comic Press Custom Post Types’ is closed to new replies.