torounit/simple-post-type-permalinks 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

torounit/simple-post-type-permalinks

Composer 安装命令:

composer require torounit/simple-post-type-permalinks

包简介

Easy to change Permalink of custom post type.

README 文档

README

Contributors: Toro_Unit, inc2734 Donate link: http://www.amazon.co.jp/registry/wishlist/COKSXS25MVQV Tags: permalink,permalinks,custom post type,cms Requires at least: 4.0 Tested up to: 5.2 Requires PHP: 5.3 Stable tag: 2.0.5 License: GPLv2 or Later License URI: http://www.gnu.org/licenses/gpl-2.0.html

Easy to change Permalink of custom post type.

Build Status

Description

Edit the permalink structure of custom post type too easy.

Simple Post Type Permalinks is Simple and Smart than Custom Post Type Permalinks.

Available tags are %post_id%, %postname%, %year%, %monthnum%, %day%, %hour%, %minute%, %second%, %author%.

Requires PHP version 5.3 or higher.

This Plugin published on GitHub.

Please Fork and Pull Request!

Installation

Manual Installation

  1. Upload the entire /simple-post-type-permalinks directory to the /wp-content/plugins/ directory.
  2. Activate Simple Post Type Permalinks through the 'Plugins' menu in WordPress.

Access the permalinks setting by going to Settings -> Permalinks.

Frequently Asked Questions

Which tag that can be used?

Only %post_id% and %postname%.

Setting on Code

Example:

register_post_type( 'foo',
	array(
		'public' => true,
		'has_archive' => true,
		'rewrite' => [
			'with_front' => true
		],
		"sptp_permalink_structure" => 'foo/%post_id%'
	)
);

Screenshots

  • screenshot-1.png

Changelog

2.0.1

  • Tested 4.9

2.0.0

  • Change of class structure.
  • Change namespace.
  • Add abstract Module class.
  • Use autoloader.
  • Remove constructor injection and add setter injection for modules.
  • Support %year%, %monthnum%, %day%, %hour%, %minute%, %second%, %author%.

1.3.1

  • fix pagination link.

1.2.0

  • fix textdomain.

1.1.0

  • Test with WooCommerce and WPML.
  • Admin Bug Fix.
  • Support get_post_type_archive.

1.0.3

  • Admin Bug Fix.

1.0.2

  • Coding Standard Fix.

1.0.0

  • Drop PHP 5.2.

0.1.0

  • First release

Upgrade Notice

1.0.0

  • Drop PHP 5.2.

0.1.0

First Release

统计信息

  • 总下载量: 14
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 21
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 21
  • Watchers: 3
  • Forks: 7
  • 开发语言: PHP

其他信息

  • 授权协议: GPL-2.0
  • 更新时间: 2016-08-12

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固