kaostc
Forum Replies Created
-
Forum: Plugins
In reply to: [ActivityPub] Display custom fields in fediverseThe above version had some errors, now I share a fixed one:
<?php
add_shortcode( 'evento_tec', 'evento_tec' );
function evento_tec( $atts ) {
// Attributes
extract( shortcode_atts(
array(
'field' => '',
), $atts
));
switch ( $field ) {
case '_EventStartDate':
if ( get_post_type( get_the_ID() ) == 'tribe_events' ) {
$display_time = false;
return "📆 " . tribe_format_date( get_post_meta( get_the_ID(), $field, true ), $display_time, "j \d\\e F \d\\e Y" ) . "<br/>🕑 " . tribe_format_date( get_post_meta( get_the_ID(), $field, true ), $display_time, "G:i" );
}
break;
case '_EventVenueID':
if ( get_post_type( get_the_ID() ) == 'tribe_events' ) {
return "📍 " . tribe_get_venue();
}
break;
}
}Forum: Plugins
In reply to: [ActivityPub] Posts not seen in PixelfedNo, they shows the featured image in mastodon cause there is a link in the post body.
How can I attach the featured image? Is this possible?
Forum: Plugins
In reply to: [Jetpack Social] Compatibility with the Events CalendarI found this piece of code that works like a charm:
<?php
add_action('init', 'my_custom_init'); function my_custom_init() { add_post_type_support('tribe_events', 'publicize'); }Forum: Plugins
In reply to: [ActivityPub] Display custom fields in fediverseI just created the shortcode :). I share it in case anyone need it. It works with the events calendar and extract data for Date, Time and Venue.
add_shortcode( 'evento_tec', 'evento_tec' );
function evento_tec( $atts ) {
// Attributes
extract( shortcode_atts(
array(
'field' => '',
), $atts
));
switch ( $field ) {
case '_EventStartDate':
if ( $field ) {
$display_time = false;
return "📆 " . tribe_format_date( get_post_meta( get_the_ID(), $field, true ), $display_time, "j \d\\e F \d\\e Y" ) . "<br/>🕑" . tribe_format_date( get_post_meta( get_the_ID(), $field, true ), $display_time, "G:i" );
}
case '_EventVenueID':
if ( $field) {
return "📍 " . tribe_get_venue($field);
}
}
return $value;
}Thanks for your help!
Forum: Plugins
In reply to: [Event Bridge for ActivityPub] Disable link to post in the bottomThanks!
Any workaround for this? Meanwhile I will just create a new event with duplicate info and delete the old. Will mastodon handle the event deletion? Any idea on a better workaround than this one?
- This reply was modified 1 year, 2 months ago by kaostc.
Forum: Plugins
In reply to: [ActivityPub] Display custom fields in fediverseThanks a lot for pointing to this plugin.
It creates an event in fediverse. What about if I am interested in creating an status from events? I can disable the plugin and let ActivityPub handle Events CPT as regular posts, so it will result in statuses on fediverse, but I still wanting to show start time, date an venue.
Any shortcodes to show custom fields at large? It would supose a good solution for me.
Thanks.
Forum: Plugins
In reply to: [Event Bridge for ActivityPub] Disable link to post in the bottomUnderstood, this is not about how the plugin deals with mastodon, but about how mastodon deals with the fediverse…
That is also the reason because mastodon doesn’t shows the updates made on events, true?
Thanks you all guys for your resolution, I will apply the patch and wait for the new version.
Forum: Plugins
In reply to: [Jetpack Social] Fatal error with plugin Publishpress authorsReally thanks to you for your attention and resolution of the issue.
Forum: Plugins
In reply to: [ActivityPub] What triggers the publication?Sorry, I will try to clarify:
- Modifying a post modifies it on fediverse
- Restoring a deleted post does not make it appears again on fediverse, even if I modify the post, change to draft and republish.
- Modifying an event doesn’t modified it on the fediverse
- Move to trash an event deletes it from fediverse. Restoring it does not recover it to the fediverse.
Forum: Plugins
In reply to: [ActivityPub] What triggers the publication?That is not working for me. How can I check what is happening?
Forum: Plugins
In reply to: [ActivityPub] Remove post from fediverseThanks!
Please, let me know when you find the error / any solution.
Forum: Plugins
In reply to: [ActivityPub] Display custom fields in fediverseThanks a lot, I am testing it…
Forum: Plugins
In reply to: [ActivityPub] Filter by categoryThat sounds like: “Yes, but you have to do something additional…”
Any clue?
Thanks,
Just for my curiosity: is this a bug of PublishPress? Cause I understood from @stevejburge answer that ideally it would has to be addressed by Jetpack Social, and that you would search for a workaround (not to fix a bug).