Linux 软件免费装

Include Mastodon Feed

开发者 wolfgang101
更新时间 2024年3月17日 23:49
捐献地址: 去捐款
PHP版本: 7.4 及以上
WordPress版本: 6.5
版权: Expat License
版权网址: 版权信息

标签

feed status mastodon

下载

1.4.2 1.5.0 1.9.3 1.9.0 1.8.1 1.9.1 1.4.0 1.1.0 1.0.1 1.3.0 1.9.2 1.2.0 1.3.1 1.6.0 1.7.0 1.8.0 1.4.1

详情介绍:

Plugin that provides an [include-mastodon-feed] shortcode to easily integrate mastodon feeds into wordpress pages. The plugin is written in PHP and generates native JavaScript to fetch and render the mastodon feed. No special libraries needed.

安装:

  1. Upload the "include-mastodon-feed" directory to the "/wp-content/plugins/" directory.
  2. Activate the plugin through the "Plugins" menu in WordPress.
  3. Insert shortcode into any page.
Shortcode example [include-mastodon-feed instance="YOUR-INSTANCE" account="YOUR-ACCOUNT-ID"] Shortcode attributes Additional customizations You can define several plugin constants to set custom default options that will be applied site-wide.
  1. Open your wp-config.php file
  2. Search for the line /* Add any custom values between this line and the "stop editing" line. */
  3. Define the options you want to override between the line from step #2 and /* That's all, stop editing! Happy publishing. */
See the included config-example.php file for a full list of supported settings.

升级注意事项:

1.8.1
  • minor style updates - if you have custom styling make sure to check if all is good
1.3.1
  • plugin constants for setting custom default options have to be defined in wp-config.php, as the previous config.php file gets removed with every automatic plugin update
1.1.0
  • "loading" shortcode attribute was renamed to "text-loading"

常见问题:

How do I find my account ID?

As an instance admin you can easily read your user ID in the admin backend. As regular user you can try an API v2 search to find your ID. API v2 notes:

  • You might have to be logged in to get any results
  • Change example.org to your instance
  • Replace username with your handle. Use the following URL to get your ID:
https://example.org/api/v2/search?q=username@example.org&resolve=true&limit=5

Known Issues / Todo

  • improve support for video and audio media attachment types
  • integrate i18n into translate.wordpress.org instead of text constants
  • re-build plugin as custom gutenberg block

更新日志:

1.9.3 1.9.2 1.9.1 1.9.0 1.8.1 1.8.0 1.7.0 1.6.0 1.5.0 1.4.2 1.4.1 1.4.0 1.3.1 1.3.0 1.2.0 1.1.0 1.0.1 1.0