We'll create fresh WordPress site with WP Telegram Widget and Join Link installed. You have 20 minutes to test the plugin after that site we'll be deleted.
Display the Telegram Public Channel or Group Feed in a WordPress widget or anywhere you want using a simple shortcode.
Ajax Widget
Goto Appearance > Widgets and click/drag WP Telegram Ajax Widget and place it where you want it to be.
Alternately, you can use the below shortcode.
Inside page or post content:
[wptelegram-ajax-widget username="WPTelegram" width="100%" height="500px"]
Inside the theme templates
<?php
if ( function_exists( 'wptelegram_ajax_widget' ) ) {
wptelegram_ajax_widget();
}
?>
or
<?php
echo do_shortcode( '[wptelegram-ajax-widget width="98%" height="700px"]' );
?>
Legacy Widget
Goto Appearance > Widgets and click/drag WP Telegram Legacy Widget and place it where you want it to be.
Alternately, you can use the below shortcode.
Inside page or post content:
[wptelegram-widget num_messages="5" width="100%" author_photo="auto"]
Inside the theme templates
<?php
if ( function_exists( 'wptelegram_widget' ) ) {
$args = array(
// 'author_photo' => 'auto',
// 'num_messages' => 5,
// 'width' => 100,
);
wptelegram_widget( $args );
}
?>
or
<?php
echo do_shortcode( '[wptelegram-widget num_messages="5" width="100%" author_photo="always_show"]' );
?>
Join Link
Goto Appearance > Widgets and click/drag WP Telegram Join Channel and place it where you want it to be.
Alternately, you can use the below shortcode.
Inside page or post content:
[wptelegram-join-channel link="https://t.me/WPTelegram" text="Join @WPTelegram on Telegram"]
Inside the theme templates
<?php
if ( function_exists( 'wptelegram_join_channel' ) ) {
$args = array(
'link' => 'https://t.me/WPTelegram',
'text' => 'Join @WPTelegram on Telegram',
);
wptelegram_join_channel( $args );
}
?>
or
We have a public group on Telegram to provide help setting up the plugin, discuss issues, features, translations etc. Join @WPTelegramChat
For rules, see the pinned message. No spam please.
Development takes place in our Github monorepo, and all contributions welcome.