Support » Plugin: Subscribe2 » Showing Custom Post name in association with title in digest

  • Resolved threeels


    I’ve updated my functions.php to include custom posts in my email updates. That works great. The issue is that I use 4 custom post types. And when they are listed in the digest as a list of post summaries I can’t include the custom post typeAdding {CATS}{POSTS} only produces the custom post title and excerpt and “Posted In:” with a blank afterwards.

    Is there a way to add the name of the custom post type to the {CATS} keyword? Or this there some other workaround. It’s not always obvious what kind of a post is showing up in the email digest and I’d like to mark them. Or, ideally sort them, but that’s probably out of the scope of the plug-in.

    Thank you.

Viewing 6 replies - 1 through 6 (of 6 total)
  • @threeels,

    I’m not sure that I completely understand the set up on your blog. But {POST} will contain data about the post content, {CATS} contains information about the categories or taxonomy user to categorise the post.

    So, if the {CATS} keyword is empty on substitution that makes me think that perhaps you are not only using custom post types but also a custom taxonomy and that maybe you also need to register the custom taxonomy in Subscribe2 also.

    If that is the case, have a look in the FAQs under the heading “How can I make use of the support for Custom Taxonomies”.

    Thanks. I had not registered my taxonomy, which I appear to have to. I register my taxonomy and sending myself an email preview. I am receiving the email and it is showing something being posted. It’s also throwing me some error messages BUT I think it’s due more to my use of test posts with WPML. I need to delete those and try again.


    Subscribe2 and WPML are not compatible really, WPML does not allow for individual users language preferences to be located with an API call so I cannot extend Subscribe2 to work with it.

    Hopefully once you clear out those posts it should work fine.

    Client is using a very small component of WPML. So none of the custom posts are being translated. Everything’s going out in English.

    I’m getting error messages that seem to be associated with adding the taxonomy in my functions.php (it didn’t show when I added custom post types). And it is triggered when I re-send my daily digest.

    Warning: implode() [function.implode]: Invalid arguments passed in [my url]wp-content/plugins/subscribe2_html/classes/class-s2-core.php on line 1507

    Warning: array_merge() [function.array-merge]: Argument #1 is not an array in [myurl] wp-content/plugins/subscribe2_html/classes/class-s2-core.php on line 1508

    Warning: array_unique() expects parameter 1 to be array, null given in [my url]/wp-content/plugins/subscribe2_html/classes/class-s2-core.php on line 1508

    Warning: in_array() expects parameter 2 to be array, object given in [my url ]/wp-content/plugins/subscribe2_html/classes/class-s2-core.php on line 1516

    Warning: implode() [function.implode]: Invalid arguments passed in [my url ]/wp-content/plugins/subscribe2_html/classes/class-s2-core.php on line 1561

    Warning: implode() [function.implode]: Invalid arguments passed in [my url ]/wp-content/plugins/subscribe2_html/classes/class-s2-core.php on line 1656

    Sorry – it was my error. I had typos in the taxonomy types. Errors go away. So, in sum, the additional code for taxonomy and custom posts seem to work. Now I’m waiting to verify that the taxonomy shows up in {CATS}.

    Thanks again for a great plug-in.


    I see you figured it out without me 🙂 Glad it seems to be working. You can always test by sending a preview.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Showing Custom Post name in association with title in digest’ is closed to new replies.