首页 > 其他分享 >介绍两款WordPress文章转移插件

介绍两款WordPress文章转移插件

时间:2023-05-12 23:32:04浏览次数:57  
标签:插件 posts pages 两款 WordPress Wordpress post include page


1. Inline Posts  如果想让你的子页面像首页一样出现文章列表

 

Wordpress lets you create pages that contain static content. The Talks and About pages on this blog are two examples. Unfortunately, until now you could not include posts inside of these static pages. With my new Inline Posts Wordpress Plugin (version 2.1.2g) (2KB), you can!

 

See the SWX Showcase and SWX documentation pages on swxformat.org for an example of the plugin in use.

In a nutshell

Download and install the plugin and you can include posts in pages (and other posts) by entering the Post ID surrounded by double square brackets ([[nnnn]] where nnnn is the numeric ID of the post you want to include).

Why include posts in pages?

The ability to include posts in pages is something I've felt the need for several times in the past. Basically, the idea is to use posts as sections within a page, with the post title appearing as the section header.

Most recently, I wanted to create the SWX documentation for the SWX homepage as a series of blog posts. This way, each section could have comments on it and I could easily update a single section by editing a post and change the order of sections on the page by changing the order of simple tags that correspond to the posts. I could also show atomic last-modified info for each section so it would be immediately obvious if any sections drift woefully out of date (something that can easily happen to long pieces of documentation).

Since this functionality didn't exist (and believe me, I searched far and wide on the Internets), I decided to roll up my sleeves and try my hand at creating my first Wordpress plugin. It was not a difficult process once I tracked down the hook I needed to latch onto and blew the relearned regular expressions for the umpteenth time.

Installation

  1. Download the Inline Posts Wordpress Plugin (version 2.1.2g (2KB) and unzip it into your wp-content/plugins/ folder.
  2. Log into your Wordpress administration panel, click the Plugins tab, and click the Activate link for the Inline Posts plugin.

Using

  1. Start writing a new page (or edit an existing page)
  2. In the place on the page where you want to include a post, enter the ID of the post, surrounded by double square brackets in the form [[nnn]].

That's it! :)

You can also include posts in other posts using this method (though I'm not entirely sure why you would want to!) And, since pages are really just posts (confused yet?), you can use the Page ID to include a page in a post or a page in another page too if you really feel like that will make your life better! :)

To see an example of it in use, look at the Wordpress page on this blog as you will see this post included in it. Note that this is the first version of the plugin and I'm testing it out as I go. It's only been tested (and not much, at that) on Wordpress 2.1.2.

I hope this plugin will be as useful for you as it has been for me.

 

 

2. 批量转移分类插件 Batch Categories

 

 

Batch Categories 插件可以批量修改日志分类也可按关键词批量添加和移除分类,对于我这个频繁更改文章分类的人来说,非常方便。

 

直接下载 Batch Categories ,解压,上传,后台激活在工具里面就可以找到它了 !

 

 

标签:插件,posts,pages,两款,WordPress,Wordpress,post,include,page
From: https://blog.51cto.com/u_8895844/6272536

相关文章

  • google-java-format 插件
    GoogleJavaStyleGuidegoogle-java-formatgoogle-java-format插件可用于重新格式化Java源代码,。启用后,它将替换通常的ReformatCode操作。该操作可以通过Code->ReformatCode触发,也可以使用Ctrl+Alt+L触发。IDEA中使用google-java-format插件在File->Settings->Pl......
  • wordpress中使用Nonce防止网站受到CSRF攻击
    使用Nonce(numberusedonce)是防止WordPress主题或者插件受到CSRF(cross-siterequestforgery)攻击最好的方法,WordPressNonce通过提供一个随机数,来实现在数据请求(比如,在后台保存插件选项,AJAS请求,执行其他操作等等)的时候防止未授权的请求。使用流程1、首先使用一个唯一的......
  • PostgreSQL如何查询IO消耗最高的SQL及优化,pg_stat_statements插件安装及使用
    PostgreSQL如何查询IO消耗最高的SQL及优化,pg_stat_statements一、安装pg_stat_statements插件二、加载pg_stat_statements模块三、配置pg_stat_statements采样参数四、创建pg_stat_statementsextension五、分析SQL查询哪些sql语句执行效率慢:重置统计信息普通用户需执......
  • OpenSeadragon 实战系列第三方插件
    序言在我们的项目中,一般不可能只是简单的显示图片,对应着还需要做一些图像标注、图像颜色过滤等操作,比如一些医学病理切片。所以openseadragon也为我们提供了一些插件,我们打开官网,找到plugins这些插件中有很多是中间件,各位根据自己的需求自行研究把,在我的项目中只使用......
  • STATA traj插件应用
    usehttps://www.andrew.cmu.edu/user/bjones/traj/data/panss.dta,cleargenoos=0replaceoos=rbinomial(1,.2)traj,var(p1-p6)indep(t1-t6)model(cnorm)min(-999)max(999)order(331)risk(risper)dropout(111)dcov(risperrisperrisp......
  • 未配置appkey或配置错误,uniapp原生安卓插件开发
    开发安卓原生插件一、官方文档1.https://nativesupport.dcloud.net.cn/NativePlugin/course/android2.下载对应的SDK、工程文件二、生成uniapp的appkey1.配置配置好Androidstudio的环境:SDK、JDK2.导入项目3.HbuilderX中创建新的项目“plugin_demo”,同时当前创建项目的APP......
  • wordpress 为自定义类型文章新增自定义字段
    wordpress强大之处在于有很强的可自定义性,使得插件、主题的开发变得及其便利。就拿我们今天要说的自定义文章添加自定义字段来说,就很便捷。        比如我们要录入一个客户信息到wordpress中,那么需要的字段可不仅仅是什么标题、内容、摘要这么简单了,我们可能需要录入客户......
  • 使用mybatisplus分页插件,设置了每页容量和页数但还是获取的全部数据(已解决)
    注意观察mybatisplus的查询语句,分页插件正确配置后,在查询时会使用limit限制查询的数量(如下图) 但是如果没配置好就是没有limit这个限制,只要加上配置文件或者确认自己的配置正确即可,配置参考如下博客springboot(二)整合mybatisplus+分页插件+代码生成springboot(二)整合mybat......
  • Jmeter - dubbo插件测试dubbo接口
    转载:https://blog.csdn.net/baidu_28340727/article/details/125570560一、背景对于如何使用Jmeter测试http接口,大家都已经比较熟悉,网上相关的知识也很多。但随着微服务越来越流行,仅仅会测试http接口已经远远不够。Dubbo作为当下非常流行的RPC接口,学习如何测试Dubbo接口已经成为......
  • pg_enterprise_views偶然发现的PG神仙插件
    一直从事数据库相关的工作,对于PG而言最大的问题其实是在运维管理方面,其缺乏有效且直观成体系的系统表,苦觅良久,今日在PG官网中发现了一款新收录的免费插件,其提供了数十张系统表,内容涵盖了从操作系统到数据库的负载指标、等待事件、会话、客户端、SQL、SQL执行计划、超时锁、长......