• Resolved James Maiden

    (@reallygreenjames)


    Hi there,

    I’m sorry to be asking this despite reading your extensive documentation, but I can’t figure out exactly how to do the following.

    I want to assign a custom post type AND a custom taxonomy to my email subject lines.

    I’ve tried lots of configurations. Is it possible do do both, or is it a case of only being able to assign either a custom post type OR a custom taxonomy?

    I had hoped something like this would work:

    [cat-slug] posttype-slug//my subject

    Thank you.

Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Author Wayne Allen

    (@wayneallen-1)

    It isn’t clear, but the category needs to go with the subject like so:

    posttype-slug//[cat-slug] my subject

    Otherwise Postie tries to find a post type called “[cat-slug] posttype-slug”

    Plugin Author Wayne Allen

    (@wayneallen-1)

    FYI – I’ve updated the page that documents this: https://postieplugin.com/faq/override-post-categories/

    Thread Starter James Maiden

    (@reallygreenjames)

    Hi Wayne,

    Thanks for the response. This looks like it should do it, but I’m not having any success.

    Following your suggestion, the post is being created as the correct post type, but the category is not being assigned and the category slug is being included in the post title.

    I’ve tried the brackets approach as suggested and also the colon approach, with cat-slug, cat name and ID.

    All no joy. Any ideas?

    thanks.

    Plugin Author Wayne Allen

    (@wayneallen-1)

    If the category is in the title then Postie was unable to find the category.

    Please install the support addon https://postieplugin.com/downloads/support-addon/ and send another test so I can see at which step the category is not being found.

    Thread Starter James Maiden

    (@reallygreenjames)

    Hey, thanks for following up.

    I’ve installed that plugin and just run another test.

    See what you can see ??

    N.B. this is a custom taxonomy we are talking about. I am using Toolset Types plugin to create my custom posts and taxnomies.

    Plugin Author Wayne Allen

    (@wayneallen-1)

    I didn’t receive the logs. You should have received a copy. Please forward to [email protected]

    Thread Starter James Maiden

    (@reallygreenjames)

    Sorry Wayne, I hadn’t checked the box to activate the support log.

    You should have received something this time.

    Plugin Author Wayne Allen

    (@wayneallen-1)

    This is what I saw in the logs:

    [info] lookup_category: hse-bulletins
    [info] lookup_category: not found by name hse-bulletins
    [info] lookup_category: not found by slug hse-bulletins
    [info] category wildcard lookup: hse-bulletins
    [info] lookup_category: wildcard found: 
    [info] tag_Categories: using default: 1

    What this tells me is that “hse-bulletins” can’t be found in the taxonomy, category or otherwise.

    Thread Starter James Maiden

    (@reallygreenjames)

    I was afraid you’d say that ??

    OK, so “hse-bulletins” and others I’ve tried are definitely taxonomy terms.

    Is the functionality restricted to standard WP categories and tags or should it work with custom taxonomies and their terms too?

    Plugin Author Wayne Allen

    (@wayneallen-1)

    In looking through the code it appears that I am not checking the slug in one case which is likely affecting you. I’ll release a new version once I’ve fixed another issue. Should be later today.

    Plugin Author Wayne Allen

    (@wayneallen-1)

    Version 1.8.45 has been released with this fix.

    Thread Starter James Maiden

    (@reallygreenjames)

    This as fixed it for me. Thank you very much for your help and your very useful plugin.

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Combine posttype and category in subject line’ is closed to new replies.