使用技巧

使用Shortnotes WordPress插件发布文本,图像和图库片段

昨天,Happy Prime所有者兼工程师Jeremy Felt获释 短注,这是一个用于从WordPress编辑器编写笔记的插件。 目的是让用户创建简短的内容,例如在Twitter,Instagram和类似的社交网络上找到的内容。 但是,它没有附带前端发布界面,至少在1.0版中没有。

该插件的工作方式类似于帖子和页面编辑器。 对于大多数用户来说,它应该很简单。

虽然Shortnotes插件目前还比较简陋,但它可以作为更多功能的基础。 使社交网络具有吸引力的部分原因是易于发布快速内容。 通过插件发布注释需要访问WordPress管理员,单击“添加新”,编写内容,发布,然后单击新链接以在前端对其进行查看。 通过仪表板小部件或前端表单快速发布的界面将是有用的补充。

使用短注词WordPress插件发布文本图像和图库片段使用短注词WordPress插件发布文本,图像和图库片段在块编辑器中记录帖子类型。

并非所有用户都熟悉的一些新概念是“回复URL”和“回复姓名”字段。 这些是用于创建笔记以回复网络上其他帖子或人的语义字段。 插件将自动在前端输出此回复链接。

该插件与 Webmention插件。 Webmention是用于在网络上进行提及和对话的标准化协议。 目标是建立一个分散的社交“网络”,每个人都拥有并控制其内容。 它是什么的替代品 独立网 称为大型高科技公司可以控制的“公司”网络。

输入URL答复时,Shortnotes将自动通过Webmentions插件系统发送该URL。 如果存在,它还会将帖子内容中的URL解析为webmentions。

用户可能还会注意到注释标题字段丢失。 这是故意的。 该插件会自动生成标题。标记需要它们,例如搜索引擎使用的工具。</p><p>这个想法是为了使标题不出现在主题布局中。 因为大多数主题在显示之前都没有编码为检查后类型支持,所以用户主题很有可能会在前端输出自动生成的标题。 目前,这意味着为不希望出现的主题编辑一些主题代码。 感到有一个 <a rel="nofollow external noopener noreferrer" href="https://github.com/jeremyfelt/writemore/blob/0b344cc9613b1ed011cba13cb3c09376def596fc/template-parts/content/content-single.php#L16-L36" data-wpel-link="external" target="_blank">他如何修改此示例</a> 他网站的自定义“二十一二十一”儿童主题。 从长远来看,随着更多主题开始支持即将到来的网站编辑器,用户将能够直接在WordPress管理员中进行此自定义。</p><p>通过一些调整,例如删除标题和一些小的CSS调整,我能够使用Genesis Block主题创建一个干净的Notes存档页面:</p><p><img loading="lazy" class="alignnone size-full wp-image-42767" src="https://wpjian.com/wp-content/uploads/2021/03/20210312-7.jpg" width="1280" height="720" alt="使用shortnotes发布文本图像和图库片段wordpress-plugin-1使用Shortnotes WordPress插件发布文本,图像和图库片段" title="使用shortnotes发布文本图像和图库片段wordpress-plugin-1使用Shortnotes WordPress插件发布文本,图像和图库片段" srcset="https://wpjian.com/wp-content/uploads/2021/03/20210312-7.jpg 1280w, https://wpjian.com/wp-content/uploads/2021/03/20210312-7-300x169.jpg 300w, https://wpjian.com/wp-content/uploads/2021/03/20210312-7-1024x576.jpg 1024w, https://wpjian.com/wp-content/uploads/2021/03/20210312-7-768x432.jpg 768w" sizes="(max-width: 1280px) 100vw, 1280px" />修改后的笔记存档。</p><p>我检查该项目的兴趣之一是深入研究一个插件的真实示例,该示例限制了哪些块可与编辑器一起使用。 注释帖子类型仅允许“段落”,“图像”和“图库”块。 同样,该想法是复制您在社交网络上可以做的事情的感觉。 总体而言,此功能按预期工作,将注释限制在块的子集中。</p><p>但是,我在块编辑器中遇到了一个错误。 所有块模式,无论它们包含什么块,都出现在插入器中。 单击包含不允许的块的块不会将其插入到帖子中。 但是,编辑器确实添加了它具有的弹出注释。 有一个 <a rel="nofollow external noopener noreferrer" href="https://github.com/WordPress/gutenberg/issues/23275" data-wpel-link="external" target="_blank">这个错误的GitHub问题</a> 自2020年6月开放以来,几乎没有动静。</p><p>感觉创建了一个插件来解决这个问题 <a rel="nofollow external noopener noreferrer" href="https://wordpress.org/plugins/unregister-broken-patterns/" data-wpel-link="external" target="_blank">取消注册损坏的图案</a>。 它删除任何包含帖子类型不支持的块的模式。 充其量,这只是一个临时措施,需要在WordPress中解决。</p><h3 class="sd-title">像这样:</h3><p>像载入中…</p><p> <a rel="nofollow external noopener noreferrer" href="https://wptavern.com/publish-text-image-and-gallery-snippets-with-the-shortnotes-wordpress-plugin?utm_source=rss&utm_medium=rss&utm_campaign=publish-text-image-and-gallery-snippets-with-the-shortnotes-wordpress-plugin" data-wpel-link="external" target="_blank">来源</a></p></div><div class="the-post-foot cf"><div class="tag-share cf"><div class="post-share"></div></div></div><div class="post-nav"><div class="post previous cf"> <a href="https://wpjian.com/themes/2021031242764.html" title="Prev Post" class="nav-icon" data-wpel-link="internal"> <i class="fa fa-angle-left"></i> </a> <span class="content"> <a href="https://wpjian.com/themes/2021031242764.html" class="image-link" rel="previous" data-wpel-link="internal"> <img width="150" height="150" src="https://wpjian.com/wp-content/uploads/2021/03/Tediss-Play-Area-Child-Care-Center-WordPress-Theme-150x150.jpg" class="attachment-thumbnail size-thumbnail lazyload wp-post-image" alt="" loading="lazy" /> </a><div class="post-meta"> <span class="label">Prev Post</span><div class="post-meta post-meta-b"><h2 class="post-title"> <a href="https://wpjian.com/themes/2021031242764.html" data-wpel-link="internal">Tediss v1.0.3 | 游乐区和儿童保育中心WordPress主题</a></h2><div class="below"> <a href="https://wpjian.com/themes/2021031242764.html" class="meta-item date-link" data-wpel-link="internal"><time class="post-date" datetime="2021-03-12T06:38:13+08:00">2021年3月12日</time></a><span class="meta-sep"></span> <span class="meta-item read-time">1 分钟阅读</span></div></div></div> </span></div><div class="post next cf"> <a href="https://wpjian.com/plugins/2021031242770.html" title="Next Post" class="nav-icon" data-wpel-link="internal"> <i class="fa fa-angle-right"></i> </a> <span class="content"> <a href="https://wpjian.com/plugins/2021031242770.html" class="image-link" rel="next" data-wpel-link="internal"> <img width="150" height="76" src="https://wpjian.com/wp-content/uploads/2021/03/main-banner.jpg" class="attachment-thumbnail size-thumbnail lazyload wp-post-image" alt="" loading="lazy" /> </a><div class="post-meta"> <span class="label">Next Post</span><div class="post-meta post-meta-b"><h2 class="post-title"> <a href="https://wpjian.com/plugins/2021031242770.html" data-wpel-link="internal">MStore Multi Vendor v1.3.4 –适用于WooCommerce的完整React Native模板</a></h2><div class="below"> <a href="https://wpjian.com/plugins/2021031242770.html" class="meta-item date-link" data-wpel-link="internal"><time class="post-date" datetime="2021-03-12T09:13:56+08:00">2021年3月12日</time></a><span class="meta-sep"></span> <span class="meta-item read-time">1 分钟阅读</span></div></div></div> </span></div></div><section class="related-posts grid-3"><h4 class="section-head"><span class="title">相关内容</span></h4><div class="ts-row posts cf"><article class="post col-4"> <a href="https://wpjian.com/tips/2021041544180.html" title="FSE拓展第5轮:探索查询任务" class="image-link" data-wpel-link="internal"> <img width="270" height="180" src="data:image/svg+xml,%3Csvg%20viewBox%3D%270%200%20270%20180%27%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%3E%3C%2Fsvg%3E" class="image lazyload wp-post-image" alt="" loading="lazy" title="FSE拓展第5轮:探索查询任务" data-srcset="https://wpjian.com/wp-content/uploads/2021/04/fse-outreach-round-5-venturing-out-a-query-quest-270x180.jpg 270w, https://wpjian.com/wp-content/uploads/2021/04/fse-outreach-round-5-venturing-out-a-query-quest-370x245.jpg 370w" data-src="https://wpjian.com/wp-content/uploads/2021/04/fse-outreach-round-5-venturing-out-a-query-quest-270x180.jpg" data-sizes="(max-width: 270px) 100vw, 270px" /> </a><div class="content"><h3 class="post-title"><a href="https://wpjian.com/tips/2021041544180.html" class="post-link" data-wpel-link="internal">FSE拓展第5轮:探索查询任务</a></h3><div class="post-meta"> <time class="post-date" datetime="2021-04-15T07:19:06+08:00">2021年4月15日</time></div></div></article ><article class="post col-4"> <a href="https://wpjian.com/tips/2021041544174.html" title="2021年6种最佳商务消息传递应用程序和软件" class="image-link" data-wpel-link="internal"> <img width="270" height="180" src="data:image/svg+xml,%3Csvg%20viewBox%3D%270%200%20270%20180%27%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%3E%3C%2Fsvg%3E" class="image lazyload wp-post-image" alt="" loading="lazy" title="2021年6种最佳商务消息传递应用程序和软件" data-srcset="https://wpjian.com/wp-content/uploads/2021/04/slack-270x180.png 270w, https://wpjian.com/wp-content/uploads/2021/04/slack-370x245.png 370w" data-src="https://wpjian.com/wp-content/uploads/2021/04/slack-270x180.png" data-sizes="(max-width: 270px) 100vw, 270px" /> </a><div class="content"><h3 class="post-title"><a href="https://wpjian.com/tips/2021041544174.html" class="post-link" data-wpel-link="internal">2021年6种最佳商务消息传递应用程序和软件</a></h3><div class="post-meta"> <time class="post-date" datetime="2021-04-15T00:25:51+08:00">2021年4月15日</time></div></div></article ><article class="post col-4"> <a href="https://wpjian.com/tips/2021041444166.html" title="2021年欧洲WordCamp呼吁演讲者和讲习班" class="image-link" data-wpel-link="internal"> <img width="270" height="180" src="data:image/svg+xml,%3Csvg%20viewBox%3D%270%200%20270%20180%27%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%3E%3C%2Fsvg%3E" class="image lazyload wp-post-image" alt="" loading="lazy" title="2021年欧洲WordCamp呼吁演讲者和讲习班" data-srcset="https://wpjian.com/wp-content/uploads/2021/04/wordcamp-europe-2021-opens-call-for-speakers-and-workshops-270x180.png 270w, https://wpjian.com/wp-content/uploads/2021/04/wordcamp-europe-2021-opens-call-for-speakers-and-workshops-370x245.png 370w" data-src="https://wpjian.com/wp-content/uploads/2021/04/wordcamp-europe-2021-opens-call-for-speakers-and-workshops-270x180.png" data-sizes="(max-width: 270px) 100vw, 270px" /> </a><div class="content"><h3 class="post-title"><a href="https://wpjian.com/tips/2021041444166.html" class="post-link" data-wpel-link="internal">2021年欧洲WordCamp呼吁演讲者和讲习班</a></h3><div class="post-meta"> <time class="post-date" datetime="2021-04-14T12:23:50+08:00">2021年4月14日</time></div></div></article ></div></section></article></div><aside class="col-4 sidebar" data-sticky="1"><div class="inner theiaStickySidebar"><ul><li id="search-2" class="widget widget_search"><form method="get" class="search-form" action="https://wpjian.com/"> <label> <span class="screen-reader-text">Search for:</span> <input type="search" class="search-field" placeholder="输入主题或插件名称进行搜索…" value="" name="s" title="Search for:" /> </label> <button type="submit" class="search-submit"><i class="fa fa-search"></i></button></form></li><li id="wpp-2" class="widget popular-posts"><h5 class="widget-title"><span>热门文章</span></h5><ul class="wpp-list wpp-sunrise"><li style="--item-position: 1; --total-items: 10;"><div class="item-position"></div><div class="item-data"><a href="https://wpjian.com/tips/2021041344145.html" class="wpp-post-title" target="_self" data-wpel-link="internal">如何配置WordPress媒体设置</a></div></li><li style="--item-position: 2; --total-items: 10;"><div class="item-position"></div><div class="item-data"><a href="https://wpjian.com/themes/2021041144066.html" class="wpp-post-title" target="_self" data-wpel-link="internal">围绕v2.0.4 –多功能商务WordPress主题</a></div></li><li style="--item-position: 3; --total-items: 10;"><div class="item-position"></div><div class="item-data"><a href="https://wpjian.com/tips/2021040943992.html" class="wpp-post-title" target="_self" data-wpel-link="internal">如何在WordPress中创建目录(3种方式;无代码)</a></div></li><li style="--item-position: 4; --total-items: 10;"><div class="item-position"></div><div class="item-data"><a href="https://wpjian.com/plugins/2021041044025.html" class="wpp-post-title" target="_self" data-wpel-link="internal">Shopist v3.0.0 | Laravel多供应商电子商务,CMS和设计器</a></div></li><li style="--item-position: 5; --total-items: 10;"><div class="item-position"></div><div class="item-data"><a href="https://wpjian.com/themes/2021041244091.html" class="wpp-post-title" target="_self" data-wpel-link="internal">YITH WooCommerce最近浏览过的产品v2.0.2</a></div></li><li style="--item-position: 6; --total-items: 10;"><div class="item-position"></div><div class="item-data"><a href="https://wpjian.com/themes/2021041144049.html" class="wpp-post-title" target="_self" data-wpel-link="internal">HighExpress –最终的PHP多供应商电子商务市场</a></div></li><li style="--item-position: 7; --total-items: 10;"><div class="item-position"></div><div class="item-data"><a href="https://wpjian.com/tips/2021040943975.html" class="wpp-post-title" target="_self" data-wpel-link="internal">是的,评论仍然有意义,但我们需要一个更好的系统</a></div></li><li style="--item-position: 8; --total-items: 10;"><div class="item-position"></div><div class="item-data"><a href="https://wpjian.com/wordpress-seo/2021041344140.html" class="wpp-post-title" target="_self" data-wpel-link="internal">自由内容营销:10个入门网站</a></div></li><li style="--item-position: 9; --total-items: 10;"><div class="item-position"></div><div class="item-data"><a href="https://wpjian.com/themes/2021041144043.html" class="wpp-post-title" target="_self" data-wpel-link="internal">Fennik v1.0.3 –多功能创意WordPress主题</a></div></li><li style="--item-position: 10; --total-items: 10;"><div class="item-position"></div><div class="item-data"><a href="https://wpjian.com/tips/2021041044038.html" class="wpp-post-title" target="_self" data-wpel-link="internal">如何配置您的WordPress书写设置</a></div></li></ul></li><li id="custom_html-2" class="widget_text widget widget_custom_html"><div class="textwidget custom-html-widget"><a href="https://www.vultr.com/?ref=8402375-6G" data-wpel-link="external" target="_blank" rel="nofollow external noopener noreferrer"><img class=" lazyload" src="data:image/svg+xml,%3Csvg%20viewBox%3D%270%200%20340%20343%27%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%3E%3C%2Fsvg%3E" width="340" height="343" data-src="https://wpjian.com/wp-content/uploads/2020/09/VULTR.jpg" /></a></div></li><li id="widget_wpcc-2" class="widget widget_wpcc"><div id="wpcc_widget_inner"> <span id="wpcc_original_link" class="wpcc_current_lang" ><a class="wpcc_link" href="https://wpjian.com/tips/2021031242768.html" title="简体中文" data-wpel-link="internal">简体中文</a></span> <span id="wpcc_zh-tw_link" class="wpcc_lang" ><a class="wpcc_link" href="https://wpjian.com/zh-tw/tips/2021031242768.html" title="繁体中文" data-wpel-link="internal">繁体中文</a></span></div></li></ul></div></aside></div></div></div><footer class="main-footer bold bold-light"><section class="lower-footer cf"><div class="wrap"><ul class="social-icons"></ul><p class="copyright">© 2019 WPJIAN.</p><div class="to-top"> <a href="#" class="back-to-top"><i class="fa fa-angle-up"></i> Top</a></div></div></section></footer></div><div class="mobile-menu-container off-canvas" id="mobile-menu"><a href="#" class="close"><i class="fa fa-times"></i></a><div class="logo"> <img class="mobile-logo lazyload" src="data:image/svg+xml,%3Csvg%20viewBox%3D%270%200%20222%2048%27%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%3E%3C%2Fsvg%3E" width="222" height="48" alt="WP建站" data-src="https://wpjian.com/wp-content/uploads/2019/04/1555569925-LOGO.png" /></div><ul id="menu-%e4%b8%bb%e8%8f%9c%e5%8d%95-1" class="mobile-menu"><li class="menu-item menu-item-type-custom menu-item-object-custom menu-item-home menu-item-833"><a href="https://wpjian.com" data-wpel-link="internal">首页</a></li><li class="menu-item menu-item-type-taxonomy menu-item-object-category menu-item-10"><a href="https://wpjian.com/category/themes" data-wpel-link="internal">外贸模版</a></li><li class="menu-item menu-item-type-taxonomy menu-item-object-category menu-item-28"><a href="https://wpjian.com/category/plugins" data-wpel-link="internal">插件</a></li><li class="menu-item menu-item-type-taxonomy menu-item-object-category menu-item-395"><a href="https://wpjian.com/category/translate" data-wpel-link="internal">汉化翻译多语言</a></li><li class="menu-item menu-item-type-taxonomy menu-item-object-category menu-item-331"><a href="https://wpjian.com/category/wordpress-seo" data-wpel-link="internal">SEO优化</a></li><li class="menu-item menu-item-type-taxonomy menu-item-object-category current-post-ancestor current-menu-parent current-post-parent menu-item-408"><a href="https://wpjian.com/category/tips" data-wpel-link="internal">使用技巧</a></li></ul></div> <script type='text/javascript' src='https://wpjian.com/wp-content/themes/wpjian/js/magnific-popup.js' id='magnific-popup-js' defer data-deferred="1"></script> <script type='text/javascript' src='https://wpjian.com/wp-content/themes/wpjian/js/jquery.fitvids.js' id='jquery-fitvids-js' defer data-deferred="1"></script> <script type='text/javascript' src='https://wpjian.com/wp-includes/js/imagesloaded.min.js' id='imagesloaded-js' defer data-deferred="1"></script> <script type='text/javascript' src='https://wpjian.com/wp-content/themes/wpjian/js/object-fit-images.js' id='object-fit-images-js' defer data-deferred="1"></script> <script type='text/javascript' id='contentberg-theme-js-extra' src="data:text/javascript;base64,dmFyIEJ1bnlhZD17ImN1c3RvbV9hamF4X3VybCI6IlwvdGlwc1wvMjAyMTAzMTI0Mjc2OC5odG1sIn07" defer></script> <script type='text/javascript' src='https://wpjian.com/wp-content/themes/wpjian/js/theme.js' id='contentberg-theme-js' defer data-deferred="1"></script> <script type='text/javascript' src='https://wpjian.com/wp-content/themes/wpjian/js/theia-sticky-sidebar.js' id='theia-sticky-sidebar-js' defer data-deferred="1"></script> <script type='text/javascript' src='https://wpjian.com/wp-content/themes/wpjian/js/jquery.slick.js' id='jquery-slick-js' defer data-deferred="1"></script> <script type='text/javascript' src='https://wpjian.com/wp-content/themes/wpjian/js/jarallax.js' id='jarallax-js' defer data-deferred="1"></script> <script type='text/javascript' src='https://wpjian.com/wp-content/plugins/wp-chinese-conversion/search-variant.min.js' id='wpcc-search-js-js' defer data-deferred="1"></script> </body></html> <!-- Page optimized by LiteSpeed Cache @2021-04-15 03:05:09 --> <!-- Page supported by LiteSpeed Cache 3.6.4 on 2021-04-15 11:05:09 --><script data-cfasync="false" src="/cdn-cgi/scripts/5c5dd728/cloudflare-static/email-decode.min.js"></script><script type="text/javascript">(function(){window['__CF$cv$params']={r:'6401f359cfa75a75',m:'560b3290365ebe8b9ecb6ee7e4be77954b1dcd20-1618455909-1800-Af4uoNjGsC2WlFkkTXVeqGi+ULzKlXBpitxeP9gWmBWJD+Q5lpW5AB1VPujo8W9RI77PoQjMq5tbOJNrBil5MXajwtWqF+zR6J21q/tEYGko1Z3/MP1GAivyPCrpnZBypgU7Cakm+MfUBkVq7HWnCb0=',s:[0x066a11620f,0x47f720f7b6],}})();</script>