Support » Plugin: Postie » Category in subject line

  • Resolved sniexx

    (@sniexx)


    Hi,

    I have a problem with category defined in subject line. In subject line I define only one category: “[category] subject”.
    Now when I post it, title of post doesn’t change to “subject” but it stays “[category] subject”. Also the category of post doesn’t change to the category defined in subject – it’s set to default. I looked into logs for more information and found out that tag_category function finds no categories although I have 8 categories defined and also post_category is set to the correct ID. I use Postie version 1.5.22 and WP 3.8.1.

    Does anybody know how to fix this?

    https://wordpress.org/plugins/postie/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter sniexx

    (@sniexx)

    Update: I found out that I got it all wrong. I still have troubles with setting category. I have 6 different mail templates and wrote a filter for parsing their content. In content there is information about category, which I want to set to post. $post[‘post_category’] = $cat_ID (cat_ID is ID of a category – I get it with get_category_by_slug) doesn’t work. Every time I set it, it just resets to default category. I cannot define category in mail subject. I looked more in the code and figured out, that it must be something wrong with tag_categories. This is returned, when debugging:

    tag_Categories: found categories
    
    Array
    (
    )
    
    post category: Array

    I have categories defined for posts.

    Can anybody help?

    Plugin Author Wayne Allen

    (@wayneallen-1)

    What is your “match short category” setting set to?

    Thread Starter sniexx

    (@sniexx)

    I have it set to “yes”. I have found a workaround, so now it works.

    Plugin Author Wayne Allen

    (@wayneallen-1)

    Please describe the workaround so others with the same issue know what to try.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Category in subject line’ is closed to new replies.