The moon across Cō̤-hāi I chased, the dream in Sĕ̤ng-hŭng I left
When saving a WordPress post, we can use the save_post hook to set the post format. During the setting process, to prevent an infinite loop, we need to utilize remove_action and add_action. Each time a post is saved, we check if the post format has been set, and if not, the default post format is set. This mechanism ensures that unless the post format is specifically set during the editing process, the default post format will be used.
Micropub is an open API standard used for creating posts on websites, such as WordPress, using third-party clients. If you want to separate Micropub content from traditional long-form articles on WordPress, it might be worthwhile to create a new post type specifically for Micropub content. Ways to create a new post type include installing specific plugins like IndieBlocks or Shortnotes, using plugins with a graphical interface like MB Custom Post Types & Custom Taxonomies or Post Types Unlimited, or hand-coding in function.php. Once created, you can set the default post type for content sent by the Micropub client via the ‘micropub_post_type’ filter in the Micropub plugin.
To enable a custom post type to support post formats, you need to set the ‘supports’ parameter to include ‘post-formats’ when registering the post type. If the post type already exists, the add_post_type_support() function can be used to add support. Furthermore, ensure that the theme being used supports post formats. You can also add code to the theme’s functions.php file to enable support for post formats. In summary, it is necessary to ensure that the theme supports post formats, the post type supports post formats, and the theme has appropriate templates for specific post formats.
A way to verify the authenticity of your identity on Mastodon is to add a link to your personal page on Mastodon on your own website (the link text doesn’t matter), which contains the attribute rel=”me” (this is a necessary condition). Thus, when the Mastodon instance receives the returned link, a small green tick will […]
As the title suggests, you definitely don’t want to manually copy and paste each account you want to follow from Mastodon to Friendica. It’s time-consuming and tedious. Open your Mastodon settings page and find the “Data Import and Export” tab. In the “Export” section, locate the “Following” option. On the right of this option, you […]
If you want to post short text content on WordPress and distinguish it from long-form content, this can be challenging. To meet the specific needs of short content, consider using the Shortnotes plugin in conjunction with the Share on Mastodon plugin. This article will elaborate on this topic.
IndieBlocks is a user-friendly IndieWeb plugin that makes it easy to turn your site into a mini social media hub. This article introduces methods for customizing the ‘note’ and ‘like’ slugs of IndieBlocks, aiding readers in personalizing their social media terminal.
Method Log into the administrator account. Click on ‘Admin’ in the menu bar. (The ‘Admin’ option in the menu bar is only visible when logged in as an administrator.) After entering the admin interface, find ‘Configuration’ —> ‘Site’ on the left sidebar. In the ‘Site’ management page, find the ‘Relocate Node’ tab. Remember this command: […]
After updating the WordPress core software or plugins, you can usually continue using your website without any issues. However, in rare cases, you may encounter the following error: Briefly unavailable for scheduled maintenance. Check back in a minute. Cause This error message occurs when WordPress enters maintenance mode temporarily during the update of the core software […]