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.