WordPress.org

Ready to get started?Download WordPress

Forums

Attributron 2000
Work with other post types (4 posts)

  1. siefca
    Member
    Posted 2 years ago #

    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/

  2. Angry Creative
    Member
    Posted 1 year ago #

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

  3. Angry Creative
    Member
    Posted 1 year ago #

    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.

  4. Angry Creative
    Member
    Posted 1 year ago #

    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

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic