Title: cmuld3r's Replies | WordPress.org

---

# cmuld3r

  [  ](https://wordpress.org/support/users/cmuld3r/)

 *   [Profile](https://wordpress.org/support/users/cmuld3r/)
 *   [Topics Started](https://wordpress.org/support/users/cmuld3r/topics/)
 *   [Replies Created](https://wordpress.org/support/users/cmuld3r/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/cmuld3r/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/cmuld3r/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/cmuld3r/engagements/)
 *   [Favorites](https://wordpress.org/support/users/cmuld3r/favorites/)

 Search replies:

## Forum Replies Created

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

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[IX Show Latest YouTube] Invalid arguement supplied for each](https://wordpress.org/support/topic/invalid-arguement-supplied-for-each/)
 *  [cmuld3r](https://wordpress.org/support/users/cmuld3r/)
 * (@cmuld3r)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/invalid-arguement-supplied-for-each/#post-6197258)
 * As this plugin looks like it’s no longer supported, I took a look and found something
   similar can be done without a plugin: [http://www.janes.co.za/embed-latest-video-from-channel/](http://www.janes.co.za/embed-latest-video-from-channel/)
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Swift SMTP (formerly Welcome Email Editor)] Welcome Emails Not Sending [WP 4.3.1]](https://wordpress.org/support/topic/welcome-emails-not-sending-wp-431/)
 *  [cmuld3r](https://wordpress.org/support/users/cmuld3r/)
 * (@cmuld3r)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/welcome-emails-not-sending-wp-431/page/2/#post-6551003)
 * Same here! Any update?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Email Subscribers & Newsletters - Email Marketing, Post Notifications & Newsletter Plugin for WordPress] Custom Post Type](https://wordpress.org/support/topic/custom-post-type-86/)
 *  Thread Starter [cmuld3r](https://wordpress.org/support/users/cmuld3r/)
 * (@cmuld3r)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/custom-post-type-86/#post-5334123)
 * This is how a developer I work with was able to get the plugin working with a
   custom post type we created:
 *     ```
       Line 77 ($category = get_the_category( $post_id );) in db_notification.php was commented out and replaced with $category = get_the_terms( $post_id, ‘category’ );. The get_the_category function does not work with CPT’s and get_the_terms is universal.
           CPT args included the following: ‘taxonomies’ => array('post_tag', 'category')
           Since the plugin only works when a category is assigned, the taxonomy 'category' was added to the CPT blog. Posts have a default category of ‘unassigned’ which is why it works with the plugin so I added an action for when posts are saved to add the category ‘unassigned’ if a category isn't assigned.
   
       add_action( 'save_post', 'set_default_category' ); function set_default_category( $post_id ) {
        // Get the terms
       $terms = wp_get_post_terms( $post_id, ‘category'); 
   
        // Only set default
       if no terms are set yet if (!$terms) {
        // Assign the default category $taxonomy = ‘category';
        wp_set_object_terms( $post_id, 1, $taxonomy );
        }
        }
       ```
   
 * Please let me know if you have any questions and if similar functionality will
   be included in a plugin update. Thank you!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Email Subscribers & Newsletters - Email Marketing, Post Notifications & Newsletter Plugin for WordPress] Custom Post Type](https://wordpress.org/support/topic/custom-post-type-86/)
 *  Thread Starter [cmuld3r](https://wordpress.org/support/users/cmuld3r/)
 * (@cmuld3r)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/custom-post-type-86/#post-5333940)
 * In the settings I don’t see anything to use a custom post type. It seems by default
   notifications work for the default blog post type of ‘post’ and I don’t see settings
   to choose a custom post type instead. My blog instead is using a custom post 
   type with custom fields as well.
 * So custom post types are not supported? Any idea how I’d be able to modify the
   plugin to send a notification for a new entry of a custom post type with custom
   fields?
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [How to Show Google Chart Tools Chart on a WP page](https://wordpress.org/support/topic/how-to-show-google-chart-tools-chart-on-a-wp-page/)
 *  [cmuld3r](https://wordpress.org/support/users/cmuld3r/)
 * (@cmuld3r)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/how-to-show-google-chart-tools-chart-on-a-wp-page/#post-2594918)
 * Not sure if it will fulfill your requirements, but you can use the chart editor
   and easily embed HTML in post/page:
    [http://imagecharteditor.appspot.com/](http://imagecharteditor.appspot.com/)
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Enable menu in custom template – PHP error](https://wordpress.org/support/topic/enable-menu-in-custom-template-php-error/)
 *  Thread Starter [cmuld3r](https://wordpress.org/support/users/cmuld3r/)
 * (@cmuld3r)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/enable-menu-in-custom-template-php-error/#post-2578746)
 * Found the issue.
 * Just read [Theme Development](http://codex.wordpress.org/Theme_Development):
 * > A theme can optionally use a functions file, which resides in the theme subdirectory
   > and is named functions.php. This file basically acts like a plugin, and if 
   > it is present in the theme you are using, it is automatically loaded during
   > WordPress initialization (both for admin pages and external pages).
 * I won’t be editing any more core files. I added a functions.php with the code
   in my theme directory and I’m good to go 🙂

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