WordPress.org

Support

Support » Plugins and Hacks » [Plugin: Attributron 2000] Work with other post types

[Plugin: Attributron 2000] Work with other post types

  • Hi,

    Thx for great plug-in, one of a few that actually do the job.

    Is it possible/hard for this plug-in to work with other post types than ‘post’ or ‘page’. I’m using the events calendar plug-in which registers new post types but for them the Contributron-2000 doesn’t work. The post type I would like to add to types supported by plug-in is ‘tribe_events’. (It is no different from a regular post, it just adds some fields needed to create event).

    Regards,
    PaweĊ‚

    http://wordpress.org/extend/plugins/attributron-2000/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Angry Creative
    Member

    @angrycreative

    +1 on this. This is pretty useless without CPT support :/

    Angry Creative
    Member

    @angrycreative

    You should add this code to your a2k.php file in the filter_the_content() function:

    if (!empty($return)) {
    $content .= "<div class='a2k-container'><p class='a2k-sources'>". __("Sources:","dws_attributron-2000") ."</p>$return</div>";
    }

    That gives you CPT support.

    Angry Creative
    Member

    @angrycreative

    And yes, It had CPT support all along, this just fixes a bug that happens if an author uploads an image and doesn’t use the attributron 2000 plugin :p

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: Attributron 2000] Work with other post types’ is closed to new replies.