The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

Attributron 2000
Work with other post types (4 posts)

  1. siefca
    Posted 4 years ago #


    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).



  2. Angry Creative
    Posted 4 years ago #

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

  3. Angry Creative
    Posted 4 years 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
    Posted 4 years 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

  • Attributron 2000
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic