Twitter Mentions As Comments
[Plugin: Twitter Mentions as Comments] Support for custom post types? (3 posts)

  1. timmmmyboy
    Posted 4 years ago #

    Hey folks! This is a long shot but we're starting to play around with custom post types and noticed that it looks like we no longer receive comments via Twitter after the change. Any idea if there are portions of the code that would need to be updated to not refer specifically to a "post"? We are not using any standard posts on the site in question, just one specific custom post type, so I don't necessarily need the plugin to handle both simultaneously.

    I scanned over the code and it seems all the calls are on post ids which should pull in the custom post types as well, but not sure where it breaks.


  2. Ben Balter
    Plugin Author

    Posted 4 years ago #

    It would be line 181 of tmac.php. You'd simply need to add &post_type={your post type} (WordPress defaults to posts here). If your still interested, I can try to add a filter in the next release so that you can modify the behavior without future updates breaking things. Let me know.

  3. LilouTravel
    Posted 4 years ago #

    Hello !

    Great plugin I just discovered yesterday and successfully installed :)
    I would like to do the same : enable it with Custom Post Types (in addition to "regular" post type)

    Just to be sure :

    - I edit the file "twitter-mentions-as-comments/twitter-mentions-as-comments.php"
    - line 181 I have this : " 'comment_content' => $tweet->text, "

    Can you tell me where to paste " &post_type={your post type} " ?

    Thank you again

    My travel blog

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Twitter Mentions As Comments
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic