siefca
Member
Posted 10 months 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/
Angry Creative
Member
Posted 9 months ago #
+1 on this. This is pretty useless without CPT support :/
Angry Creative
Member
Posted 9 months 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.
Angry Creative
Member
Posted 9 months 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