Loading [MathJax]/jax/input/TeX/config.js
前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
社区首页 >专栏 >Simple microblogging [增强版]-WordPress说说插件

Simple microblogging [增强版]-WordPress说说插件

作者头像
obaby
发布于 2023-03-31 05:59:07
发布于 2023-03-31 05:59:07
52000
代码可运行
举报
文章被收录于专栏:obaby@marsobaby@mars
运行总次数:0
代码可运行
更新记录 0.2 1.优化文章显示 2.增加分页功能 3.替换图标 4.修改菜单名称

简介:

代码语言:javascript
代码运行次数:0
运行
AI代码解释
复制
=== Simple microblogging ===

Contributors: sgcoskey, vgitman, VegetarianZombie,obaby
Donate link: https://boolesrings.org
Tags: tweet, tweets, microblog, microblogging, micropost
Requires at least: 3.0
Tested up to: 6.1.1
Stable tag: 0.1
增强版支持网站:http://oba.by

Add a microblog to your site; display the microposts in a widget or using a shortcode. 增强版优化页面显示,增加分页功能。

== Description ==

This simple plugin allows you to easily post short messages such as thoughts and updates.  These messages will not appear in your stream of posts; instead you can display them in a widget in yours sidebar.  You can also display them in any post or page by using the `[m i c r o b l o g ](使用时去掉空格)` shortcode.

To get started, just look for the new `Microposts` administration panel in your dashboard.  Click `Add new` and then compose a short message in the same way that you normally compose your posts.  If you give the micropost a title, then it will be displayed in bold and used as the first few words of the micropost.

Then, either add the widget to your sidebar or add the `[m i c r o b l o g ](使用时去掉空格)` shortcode into your site, and that's it!

The `[m i c r o b l o g ](使用时去掉空格)` shortcode supports several options:

* **num**: The number of microposts to show.  Defaults to `5`.  Use `-1` to show all microposts.

* **null_text**: If no results are returned, shows this text.  Defaults to `(none)`.

* **show_date**: If defined, the creation date will precede the microposts.

* **date_format**: If showing the date, this php date format will be used.  The default is the Date Format value from the General Settings page.  I recommend `"F j"`, which displays as "May 12".

* **use_excerpt**: If defined, use the post excerpt instead of the entire contents.  We recommend writing short microposts, but if you prefer to write longer ones, this can be used to truncate them.  Unfortunately, WordPress excerpts don't allow links or other html, use the plugin [Advanced Excerpt](http://wordpress.org/extend/plugins/advanced-excerpt/) to remedy this!

* **q**: Arbitrary &-separated arguments to add to the query.  See the [WP_Query](http://codex.wordpress.org/Class_Reference/WP_Query/#Parameters) page for available syntax.  For example, to show only posts from author `sam` in ascending instead of descending order, you would write `[m i c r o b l o g  q="author_name=sam&order=ASC"]`(使用时去掉空格).

The output can then be further formatted using CSS.  We recommend the plugin [Improved Simpler CSS](http://wordpress.org/extend/plugins/imporved-simpler-css/) for quickly styling your post list (and your site)!

Report bugs, give feedback, or fork this plugin on [GitHub](http://github.com/scoskey/Simple-microblogging-wordpress-plugin).

== Installation ==

Nothing unusual here!

== Screenshots ==

1. A rendered widget containing my two microposts
2. The widget configuration box

== Other notes ==

If you are having trouble viewing your microposts, try visiting your permalinks preference pane and clicking `Save changes`.

It is a known issue that some permalink structures do not work with Simple microblogging when the plugin `Salmon for wordpress` is installed.

== Changelog ==
0.2 
1.优化文章显示
2.增加分页功能
3.替换图标
4.修改菜单名称

0.1 Added support for authors.  Added use_excerpt option to the shortcode

0.0 initial releasec

插件效果:

实例演示:https://h4ck.org.cn/talk/

☆文章版权声明☆

* 网站名称:obaby@mars * 网址:https://h4ck.org.cn/ * 本文标题: 《Simple microblogging [增强版]-WordPress说说插件》 * 本文链接:https://h4ck.org.cn/2023/03/simple-microblogging-%e5%a2%9e%e5%bc%ba%e7%89%88/ * 转载文章请标明文章来源,原文标题以及原文链接。请遵从 《署名-非商业性使用-相同方式共享 2.5 中国大陆 (CC BY-NC-SA 2.5 CN) 》许可协议。

本文参与 腾讯云自媒体同步曝光计划,分享自作者个人站点/博客。
原始发表:2023年3月29日 ,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体同步曝光计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
暂无评论
推荐阅读
编辑精选文章
换一批
【网站优化经验】Wordpress核心代码与功能
本文主要是分享对Wordpress核心代码与功能的优化,对wordpress核心代码的优化与删减将会提升你的网站后台速度,都是为了让你的Wordpress网站更快!
幻影龙王
2021/09/11
5460
【网站优化经验】Wordpress核心代码与功能
WordPress主题下funtions.php的一段“恶意”代码
不多说了,相信有很多WordPresser都知道这段在WordPress主题下fountions.php的“恶意”代码,之所以为“恶意”加个双引号是想说:其实也不算太“恶意”,对你的伤害只是两点:1、感染wp-content\themes\下所有主题的fountions.php文件;2、以当前被感染博客的主页URL为标题和内容,向 livethemas@gmail.com发送邮件。已经知道的就不用往下看啦,还不知道的快去你的主题fountions.php检查有木有,有的话赶快删除之。话说这段恶意代码还真够长
Jeff
2018/01/19
1.2K0
WordPress 评论显示IP归属地插件–WP-UserAgent[增强版]
* 本文标题: 《WordPress 评论显示IP归属地插件–WP-UserAgent[增强版]》
obaby
2023/02/22
9898
WordPress 优化404页面
wordpress主题自带的404页面过于简单,只是显示了一个page not found,左侧区域空荡荡的,与右侧的侧边栏搭配丑的一p。于是就尝试进行改造了一下,第一次改造在404页面加了下部的随机文章。代码如下:
obaby
2023/02/23
3540
WordPress 优化404页面
【译】WordPress 中的50个过滤器(5):第31-40个过滤器
本文为系列第三篇,原文:50 Filters of WordPress: Filters 31-40 原文地址 在过去的两篇文章中,我们总共介绍了30个WordPress 的过滤器。在本文中,我们将接触其他类型的过滤器,一如既往,有例子予以加深理解。 本系列文章翻译自tutsplus,原作者为Barış Ünver,翻译人:Jeff,转载请注明原始来源及翻译人,谢谢! 本文若有修正,不会更新于本页,只会更新到Github项目地址上。 过滤默认的相册样式 WordPress 中会使用[ gallery]这
Jeff
2018/01/22
1.2K0
WordPress 回复可见【非插件】
网上随便搜了一下,发现这个功能的文章基本都是抄来抄去抄的。我也抄了一份发现不大好用,因为发表评论之后看了一下发现根本没有cookie信息。如果要使用这个功能首选需要开启下面的选项:
obaby
2023/02/22
4360
WP Plugin Info Card : 用于展示WordPress插件信息的最佳插件-
当你想在WordPress中分享某些优秀的主题或插件时,可以使用WP Plugin Info Card ,该插件可以自动获取相关的各种信息,并在文章中用美观大方的动态卡片展示出来,也可以灵活控制需要展示的字段,并且可以异步加载。
丘壑
2019/04/19
1.3K0
wordpress调用函数大全
WordPress Header头部 PHP代码 (注: 也就是位于<head>和</head>之间的PHP代码)
纯情
2023/04/26
6030
WordPress 插件:“即将推出” Widget
出于维护博客更新频率,或精雕细琢文章时督促自己及时完成,我们会在 WordPress 中把该篇文章设为“定时发布”(Schedule)。如果能在网站显示出这些预定发布的文章,应该会吸引读者继续关注你的博客吧?
Denis
2023/04/15
2490
几个实用的 WordPress 代码片段
贴几个最近用到 WordPress 的代码片段,代码均搜集于网络,使用方式都是添加到主题的 functions.php 文件。 “Talk is cheap. Show me the code.” —— Linus Torvalds 搜索结果页面关键字高亮 为搜索结果页中的标题和正文的关键字添加 highlight 类,然后你就可以通过 CSS 设定高亮样式了。 function qq52o_highlight_search_keywords($text){ if ( is_search()
沈唁
2018/05/24
7150
WordPress主题开发,从入门到精通。
相关文档:https://www.wpzhiku.com/document/wordpress-plugin-basics/
房东的狗丶
2023/02/17
10.8K0
WordPress插件大全
Anonymous WordPress Plugin Updates – 防止 WordPress 将系统当前启用插件列表、博客地址和 WordPress 版本等信息发送出去。它是 WordPress 设置中理想的隐私探查工具。
星哥玩云
2022/08/13
2K0
WordPress登录页面定制插件推荐
We’ve all seen how login pages work on WordPress sites, but what is the point of having it at all? F
星哥玩云
2022/06/11
8290
WordPress登录页面定制插件推荐
WordPress 中文分词搜索
上图是改进之后的搜索效果,wordpress的搜索按照网上的说法做的比较烂,貌似是全字段匹配,于是搜索上面的关键词”ida调试器”就出现了下面的状况,啥都没有:
obaby
2023/02/23
8310
WordPress 中文分词搜索
修改WordPress 文章内分页样式
最近写了一篇比较长的隐私文章,用到了wp的文章分页功能。却发现默认的分页的页面又小又难找。于是想修改wp的默认分页,网上找了下相关的代码基本都是下面的样子:
obaby
2023/02/22
1.5K0
WordPress 自动发布文章
小宝跟着小熊美术学习画画也有段时间了,我个人并不懂艺术。只是有的画看起来还是挺有质感的,前段时间在浏览十年之约论坛的时候看到竟然有我爱你的域名后缀,于是就注册了个媱媱.我爱你。现在用的这个blog使用的数据量蛮大了,并且由于升级程序版本之后现在感觉性能也是个问题,于是升级了系统配置,扩大了系统盘空间。域名备案在经历了十几天之后终于过了,于是开始折腾这个新的blog。
obaby
2023/02/22
5920
wordpress函数大全列表整理
wordpress有很多的函数可供调用,下面ytkah就整理了一下wordpress函数大全供各位参考,如果要详情,可以访问https://developer.wordpress.org/reference/functions/参数名/,感兴趣的朋友可以收藏
ytkah
2020/07/13
9240
WordPress 首页加载速度(根本停不下来!)
一直就发现首页加载的速度非常蛋疼,直接蛋疼的都要碎了。今天仔细的研究了一下,发现出错的地方都是由于Google服务被屏蔽导致的,感谢CCAV。其实一个出错的是Google的自定有搜索框,第二个是Google的开放字体服务;对于第一个确实没什么好的办法,只能暂时去掉了,如果要搜索指定站点的内容可以使用site修饰符例如在Google搜索框中输入site:www.h4ck.org.cn 关键词 然后搜索即可。至于第二个问题,解决的办法比较简单,出错的是wp-includes/script-loader.php,第602行的内容:
obaby
2023/02/23
4600
【译】WordPress 中的50个过滤器(4):第21-30个过滤器
本文为系列第四篇,原文:50 Filters of WordPress: Filters 21-30 原文地址 在过去的两篇文章中,我们总共介绍了20个WordPress 的过滤器。在本文中,我们将接触其他类型的过滤器,一如既往,有例子予以加深理解。 本系列文章翻译自tutsplus,原作者为Barış Ünver,翻译人:Jeff,转载请注明原始来源及翻译人,谢谢! 本文若有修正,不会更新于本页,只会更新到Github项目地址上。 让我们开始吧! 过滤搜索查询 在一个WordPress 站点中,搜索是
Jeff
2018/01/22
1.2K0
wordpress免插件自动添加meta信息
作者:matrix 被围观: 3,009 次 发布时间:2014-01-30 分类:Wordpress | 18 条评论 »
HHTjim 部落格
2022/09/26
2510
wordpress免插件自动添加meta信息
相关推荐
【网站优化经验】Wordpress核心代码与功能
更多 >
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档
本文部分代码块支持一键运行,欢迎体验
本文部分代码块支持一键运行,欢迎体验