- 博客(120)
- 资源 (7)
- 收藏
- 关注
转载 wordpress CMS主题如何调用3个月内的热门文章排行榜
第一步:为wordpress主题的文章添加记录浏览量功能如何记录wordpress文章的用户浏览量,这个在我们发表的前面的文章中就已经介绍过了。这里,再把它贴出来://访问计数:必须 启用 wp_head();function record_visitors(){if(is_singular()){global $post;$post_ID = $post->ID;if(...
2019-07-15 15:58:21
1160
1
转载 wp路劲函数
//路径相关常量define('SITE_URL', WP_CONTENT_DIR);//wp-content目录的服务器绝对路径,例如/home/user/public_html/wp-contentdefine('SITE_URL', WP_CONTENT_URL);//wp-content目录的URI地址,例如https://www.solagirl.net/wp-contentde...
2019-07-15 15:57:50
314
转载 wp清理
<?php/**Plugin Name: unify 优化123Plugin URI: Description: 扩展优化wpVersion: 1.0Author URI: *//*定义一些常量*/define('UNIFY_VER', wp_get_theme()->get('Version'));//define('UNIFY_URL', get_temp...
2019-07-15 15:57:14
562
转载 wp函数
WordPress模板基本文件style.css 样式表文件index.php 主页文件single.php 日志单页文件page.php 页面文件archvie.php 分类和日期存档页文件searchform.php 搜索表单文件search.php 搜索页面文件comments.php 留言区域文件(包括留言列表和留言框)404.php 404错误页面header.p...
2019-07-15 15:56:38
875
原创 wp定义路径
<?php/**wp-config.php*//**define('WP_CONTENT_DIR', '/home/user/public_html/cdn');define('WP_CONTENT_URL', 'http://sola-cdn.me');*///路径相关常量define('SITE_URL', WP_CONTENT_DIR);//wp-content...
2019-07-15 15:56:01
616
转载 wp路径函数
<?php /*Template Name: Full-width layoutTemplate Post Type: post, page, product*/与WordPress打交道,经常遇到的一个问题就是获取路径,包括URL路径和服务器路径,在主题或插件中引用js或css文件需要URL地址,而include一些文件时则需要服务器路径。在WordPress中,不能认定w...
2019-07-15 15:55:21
377
转载 wp模板
<?php /*Template Name: Full-width layoutTemplate Post Type: post, page, product*/ // ... 模板代码可以在 post(文a章),page(页面),product(产品) 等类型的文章中选择使用这个名字为 Full-width layout(全宽布局) 的页面模板。...
2019-07-15 15:54:23
605
转载 WordPress的基本配置
<?php/** * WordPress的基本配置 * * The wp-config.php creation script uses this file during the * installation. You don't have to use the web site, you can * copy this file to "wp-config.php" and ...
2019-01-12 08:43:23
869
转载 config.php 配置文件说明
hostname'=数据库地址[如果数据库和空间在一个ip,可以默认loalhost不更改] user'=数据库用户名[必须和空间商所给的一致] password'=数据库密码[必须和空间商所给的一致] database'数据库名称[必须和空间商所给的一致] prefix'=数据库表前缀[如果同数据库安装多个CmsEasy,那么表前缀名称需要更改不同名称] encoding'=网站编码...
2019-01-12 08:42:46
1707
翻译 the7 Quick Start Guide
感谢您选择7!本快速入门指南,你会找到所有需要的信息如何安装主题和捆绑插件,故障排除最常见的问题,使你的网站看起来像主题演示。为主题的详细信息,请访问使用7在线用户指南。此外,您可以使用疑难解答和知识库在我们的支持门户。7自带的免费技术支持。所以当一切都失败了,请不要犹豫,提交支持请求通过我们的在线帮助台。我们的支持政策是可用的本页。 我们希望你能享受工作7。你真诚的,梦...
2018-11-03 08:50:13
536
翻译 JQMIGRATE: Migrate is installed, version 1.4.1
The only way to remove the notice is to ensure all your plugins/theme code don’t rely on any old jQuery functionality, and then remove the migrate script:add_action( 'wp_default_scripts', function( $s...
2018-02-28 23:12:32
5336
翻译 Metaboxes
Metaboxes/Extensions /Metaboxes ExtensionsIf you are used the ReduxFramework declaration arrays, you know Redux Metaboxes. They’re one and the same! The only difference is a parent array. We’ll go thr...
2018-02-26 16:50:52
354
翻译 redux分类Taxonomy
Taxonomy/Extensions /Taxonomy Extensions 分类/扩展/分类扩展If you are used the ReduxFramework declaration arrays, you know Redux Taxonomy. They’re one and the same! The only difference is a parent array. We’l...
2018-02-26 16:48:46
394
翻译 Raw源
The Raw field provides the ability to output raw HTML directly into the options panel both full width and sectioned.原始字段提供了将原始HTML直接输出到选项面板的能力。Full Width全宽度分段(' full_width”= >假)Arguments参数NameTypeD...
2018-02-26 16:42:05
361
翻译 redux参数入门
Getting started with Argumentsredux参数入门/Uncategorized /Getting started with ArgumentsThe Redux Framework configurati配置on file (sample-config.php) comes with a variety of arguments to customize the opt...
2018-02-26 16:32:55
528
翻译 集成一个编译器
Integrating a Compiler/Core / Advanced / Integrating a Compiler AdvancedThis article deals specifically with integrating a basic compiler hook for any Redux field. For an in depth article on how to us...
2018-02-26 13:11:45
468
翻译 将redux嵌入你的主题或插件
Embedding Redux into Your Theme or Plugin/Core / Advanced / Embedding Redux into Your Theme or Plugin AdvancedSo you have this really cool Theme or Plugin. And of course you love Redux because – let’s...
2018-02-26 13:10:50
432
翻译 redux动态更新的CSS文件
Updating a CSS File Dynamically/Core / Advanced / Updating a CSS File Dynamically AdvancedOne of Redux’s most underrated features is the ability to update a CSS file on your server dynamically using c...
2018-02-26 13:09:36
383
翻译 自定义REDUX选项面板CSS
We understand customization is important to any developer. That’s why we’ve provided a few useful hooks to enqueue or dequeue our default CSS files. Interested? Read on!我们的理解任何定制开发是重要的。这就是为什么我们已经提供了一...
2018-02-26 13:08:41
430
翻译 Add a Custom Field
Adding a custom field to Redux is quite simple. It is important the following code is included before the ReduxFramework object is created.添加自定义字段到框架是很简单的。以下的代码是重要的,reduxframework对象创建前包含的。Hook into th...
2018-02-26 13:03:17
412
翻译 redux启用预览字体的字体位置
When specifying fonts used locally in your theme in the typography field’s fonts argument, the will not render in the preview field. We’ve included an undocumented workaround in the typography field t...
2018-02-26 12:58:29
338
翻译 redux框架面板外更新选项
Most of the time, options for your theme or plugin will be set via the options panel. But what if you have a need to update an option someplace else? Perhaps an option would need to be changed behind ...
2018-02-26 12:57:01
290
翻译 IDE Snippets & Templates
IDE Snippets & Templates IDE片段 模板/Core / Advanced / Core /Core / Support / Core / The Basics / IDE Snippets & Templates/核心/高级/核心/核心/支持/核心/基础/集成代码和模板 Advanced/ Core/ Support/ The Basics高级/核心/支持...
2018-02-26 12:42:57
238
翻译 Support Defined
Support Defined/Core / Advanced / Core /Core / Support / Core / The Basics / Support Defined Advanced/ Core/ Support/ The BasicsWho are we?We maintain an open source project entitled Redux Framework. ...
2018-02-26 12:39:59
272
翻译 Filter Hooks
Filter Hooks/Core / Advanced / Core / Filters / Filter Hooks Advanced/ FiltersThe follow table is a list of available filter hooks within Redux Framework that developers may use in their own code. Pl...
2018-02-26 12:39:17
272
翻译 Actions Hooks
Actions Hooks/Core / Action Hooks / Core / Advanced / Actions Hooks Action Hooks/ AdvancedThe follow table is a list of available filter hooks within Redux Framework that developers may use in their o...
2018-02-26 12:38:30
246
翻译 Removing Demo Mode and Notices
Removing Demo Mode and Notices/Core / The Basics / Removing Demo Mode and Notices The BasicsRedux Framework, when run as a plugin ships with a sample config in order to permit people to try Redux out ...
2018-02-26 12:37:17
290
翻译 Using Permissions
Using Permissions/Core / Fields / Core / Sections / Using Permissions Fields/ SectionsThe permissions argument is useful for restricting access to certain fields or sections that require a specified u...
2018-02-26 12:35:29
248
翻译 The Redux API
The Redux API/Core / Advanced / Core /Core / Fields / Core / Sections / Core / Support / Core / The Basics / The Redux API Advanced/ Core/ Fields/ Sections/ Support/ The BasicsWith Redux 3.5+, we’ve c...
2018-02-26 12:34:56
266
翻译 部件入门
Getting Started with Sections部件入门Before any Field array is written, which will represent(代表) the individual options(个人选项) on the options panel, a section must be created. The section array sets up a t...
2018-02-26 12:31:53
205
转载 WordPress 插件开发教程 Part 3 – 钩子( Hooks )
本文是《WordPress 插件开发教程》系列教程的第 3 部分,该系列共包含以下 4 个部分:WordPress 插件开发教程 Part 1 – WordPress 插件简介WordPress 插件开发教程 Part 2 – WordPress 插件基础WordPress 插件开发教程 Part 3 – 钩子( Hooks )WordPress 插件开发教程 Part 4 – 与WordPres...
2018-02-25 23:24:56
1313
转载 WordPress 插件开发教程 Part 2 – WordPress 插件基础
本文是《WordPress 插件开发教程》系列教程的第 2 部分,该系列共包含以下 4 个部分:WordPress 插件开发教程 Part 1 – WordPress 插件简介WordPress 插件开发教程 Part 2 – WordPress 插件基础WordPress 插件开发教程 Part 3 – 钩子( Hooks )WordPress 插件开发教程 Part 4 – 与WordPres...
2018-02-25 23:05:48
1534
转载 WordPress 插件开发教程 Part 1 – WordPress 插件简介
本文是《WordPress 插件开发教程》系列教程的第 1 部分,该系列共包含以下 4 个部分:WordPress 插件开发教程 Part 1 – WordPress 插件简介WordPress 插件开发教程 Part 2 – WordPress 插件基础WordPress 插件开发教程 Part 3 – 钩子( Hooks )WordPress 插件开发教程 Part 4 – 与WordPres...
2018-02-25 22:42:35
1612
转载 WordPress 插件开发教程 Part 4 – 与WordPress整合
本文是《WordPress 插件开发教程》系列教程的第 4 部分,该系列共包含以下 4 个部分:WordPress 插件开发教程 Part 1 – WordPress 插件简介WordPress 插件开发教程 Part 2 – WordPress 插件基础WordPress 插件开发教程 Part 3 – 钩子( Hooks )WordPress 插件开发教程 Part 4 – 与WordPres...
2018-02-25 10:52:32
1959
翻译 add plugins page
描述为插件添加菜单的子菜单页面使用 <?phpadd_plugins_page( $page_title, $menu_title, $capability, $menu_slug, $function);?> 参数$page_title(string) (required) The text to be displayed in the title tags of the page ...
2018-02-25 10:46:14
361
翻译 Adding Administration Menus
概述通常情况下,插件和主题的作者都需要为其提供一个配置界面,以方便用户去自定义它们。将这个配置界面展示给用户的最好方式,就是在后台管理员界面的配置菜单中添加一个选项,然后当用户点击这个选项的时候再去打开它。这篇文章将会告诉你如何去实现这样的事情。注意:在继续阅读之前,你应当对如何写一个插件,以及Actions和Filters的插件API函数有一定的了解。参考函数General FunctionsM...
2018-02-25 10:40:53
258
转载 如何开发一个WordPress插件
介绍WordPress 插件 允许你对 WordPress 博客进行修改、自定义和加强。不必修改 WordPress 的核心程序,直接用插件的形式增加功能。下面是对 WordPress 插件的基本定义:WordPress 插件:WordPress 插件是用 PHP 语言写成的一只或者一组程序。这些程序可以为 WordPress 增加某些原来没有的功能,这样使用者看起来仿佛就是这个博客固有的功能。 ...
2018-02-25 10:02:03
1628
原创 admin
<?php /** * 1、在这里定义了一些用到的函数和常量、变量。 * 2、框架只需要加载者一个文件就可用添加所有扩展和选项了 * https://github.com/reduxframework/redux-framework/blob/master/sample/sample-config.php */ // 不允许直接访问...
2018-02-24 00:52:01
243
原创 pach
<?php // 不允许直接访问此文件。 if ( ! defined( 'ABSPATH' ) ) { exit( '拒绝直接访问此脚本.' ); } /** * 定义框架常用的几个路径,你也可以添加自己的路径在此 * 注释版:https://gitee.com/jiuciyu/wordpress-funcs/tre...
2018-02-24 00:48:58
636
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人