Home Backend Development PHP Tutorial Detailed introduction to custom fields

Detailed introduction to custom fields

Jun 11, 2017 pm 02:47 PM

This article mainly introduces the DedeCms custom field call length interception method. Friends in need can refer to it. For example, the called field is the test dedecms template download address: www.php.cn/xiazai/code/dedecms Method 1: Run the php method.. [field:test runphp=yes] @me= substr (@me, intercept bytes) [/field:test] Method 2: Call the built-in function method [field:test function='cn_substr(@me, intercept bytes)'/] The two methods are actually similar. The second method is more suitable for Chinese interception. Yes The effect of the built-in function encapsulated by dedecms is much better than the first one..

1. Two methods for length interception of DedeCms custom field call

Detailed introduction to custom fields

Introduction: This article mainly introduces the DedeCms custom field call length interception method. Friends in need can refer to it

2. A brief analysis of common operations of GridView in Yii2 staggeredgridview gridview query to clear gridview

Introduction: GRIDVIEW: A brief analysis of common operations of GridView in Yii2: This article is for everyone to collect and sort out most of the problems that arise in GridView on the Internet. This article makes a summary and shares it on the Script Home platform for your reference. If there are any frequently asked questions about GridView that are not mentioned below, leave a message below and I will add them. Drop-down search Date formatting and implementation Date can be searched according to parameters Whether to display links Clickable to jump to display pictures HTML rendering Custom buttons Set width and other styles Custom fields Custom row styles Add buttons Call js operations yii2 GridView Drop-down search implementation case Tutorial yii2

3. wordpress custom field output code design_PHP tutorial

Introduction: wordpress custom field Output code design. !--For example, if this is a slideshow-- div class=flexslider ?php if ( have_posts() ) :the_post(); ? ul class=slides ?php $images = get_post_meta($post-ID, images, false); //一

4. phpcms recommendation bit cannot call custom fields_PHP tutorial

Introduction : The phpcms recommendation bit cannot call custom fields. By default, phpcms cannot use the recommended bit to call custom fields. If you directly write {pc:content action=position posid=30 catid=24 order=listorder DESC num=4}, there will be no error, but it cannot be adjusted.

5. Related PHP function analysis for writing custom storage fields in WordPress, _PHP tutorial

Introduction: Writing custom storage in WordPress Field related PHP function parsing,. Analysis of relevant PHP functions for writing custom storage fields in WordPress. The custom fields of WordPress are the meta information (meta information) of the article. Using this function, you can expand the

6 of the article. Add custom fields and background editing functional areas to articles in WordPress, _PHP tutorial

Introduction: Add custom fields and background editing functional areas to articles in WordPress, . Add custom fields and background editing functional areas to articles in WordPress. The add_post_meta add_post_meta function is a function in WordPress used to add custom field values ​​to articles or pages.

##7. The get_post_custom() function in WordPress development uses analysis, wordpressgetpost_PHP tutorial

Introduction: The get_post_custom() function in WordPress development uses analysis, wordpressgetpost. The get_post_custom() function in WordPress development uses parsing. WordPressgetpost is the same as get_post_meta(). The custom field used to return the article deserves a function, except get_post_cu

8. After dedecms customizes the field, the input box of the custom field does not appear

Introduction: After dedecms customizes the field, the input box of the custom field does not appear

【Related Q&A Recommendations】:

php - How to design the slideshow function of WordPress theme settings?

php - How to design an efficient custom field form data table?

javascript - There are errors in the time when creating object and getting object using js

php - Symfony2 form creates custom fields that are used multiple times

php - How does Dreamweaver call all the image addresses in the custom field?

The above is the detailed content of Detailed introduction to custom fields. For more information, please follow other related articles on the PHP Chinese website!

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Explain JSON Web Tokens (JWT) and their use case in PHP APIs. Explain JSON Web Tokens (JWT) and their use case in PHP APIs. Apr 05, 2025 am 12:04 AM

JWT is an open standard based on JSON, used to securely transmit information between parties, mainly for identity authentication and information exchange. 1. JWT consists of three parts: Header, Payload and Signature. 2. The working principle of JWT includes three steps: generating JWT, verifying JWT and parsing Payload. 3. When using JWT for authentication in PHP, JWT can be generated and verified, and user role and permission information can be included in advanced usage. 4. Common errors include signature verification failure, token expiration, and payload oversized. Debugging skills include using debugging tools and logging. 5. Performance optimization and best practices include using appropriate signature algorithms, setting validity periods reasonably,

Describe the SOLID principles and how they apply to PHP development. Describe the SOLID principles and how they apply to PHP development. Apr 03, 2025 am 12:04 AM

The application of SOLID principle in PHP development includes: 1. Single responsibility principle (SRP): Each class is responsible for only one function. 2. Open and close principle (OCP): Changes are achieved through extension rather than modification. 3. Lisch's Substitution Principle (LSP): Subclasses can replace base classes without affecting program accuracy. 4. Interface isolation principle (ISP): Use fine-grained interfaces to avoid dependencies and unused methods. 5. Dependency inversion principle (DIP): High and low-level modules rely on abstraction and are implemented through dependency injection.

How to automatically set permissions of unixsocket after system restart? How to automatically set permissions of unixsocket after system restart? Mar 31, 2025 pm 11:54 PM

How to automatically set the permissions of unixsocket after the system restarts. Every time the system restarts, we need to execute the following command to modify the permissions of unixsocket: sudo...

Explain the concept of late static binding in PHP. Explain the concept of late static binding in PHP. Mar 21, 2025 pm 01:33 PM

Article discusses late static binding (LSB) in PHP, introduced in PHP 5.3, allowing runtime resolution of static method calls for more flexible inheritance.Main issue: LSB vs. traditional polymorphism; LSB's practical applications and potential perfo

How to debug CLI mode in PHPStorm? How to debug CLI mode in PHPStorm? Apr 01, 2025 pm 02:57 PM

How to debug CLI mode in PHPStorm? When developing with PHPStorm, sometimes we need to debug PHP in command line interface (CLI) mode...

Explain late static binding in PHP (static::). Explain late static binding in PHP (static::). Apr 03, 2025 am 12:04 AM

Static binding (static::) implements late static binding (LSB) in PHP, allowing calling classes to be referenced in static contexts rather than defining classes. 1) The parsing process is performed at runtime, 2) Look up the call class in the inheritance relationship, 3) It may bring performance overhead.

How to send a POST request containing JSON data using PHP's cURL library? How to send a POST request containing JSON data using PHP's cURL library? Apr 01, 2025 pm 03:12 PM

Sending JSON data using PHP's cURL library In PHP development, it is often necessary to interact with external APIs. One of the common ways is to use cURL library to send POST�...

See all articles