官术网_书友最值得收藏!

Custom Fields

Custom Fields are WordPress' way of giving you the possibility to include some additional information in your blog posts (information that you don't want to display directly on the frontend). In essence, Custom Fields are a kind of semi-programming tool--they are not exactly code as understood by PHP programmers, yet they do give you the possibility to tweak your content in a certain, non-stock way. Many WordPress themes use various Custom Fields to style the individual aspects of posts. For example, some theme creators use Custom Fields to disable the sidebar on certain posts or include various typographic elements.

As another example, let's say you are a gadget reviewer and every blog post is a review of some cool new thing. Every time you write a review, you're writing it about a product that's made by some company, and you'd like to have that company's logo associated with the blog post. You can make a custom field called company_logo and the value can be the path to the logo image:

To display or make use of this Custom Field information, you either have to modify your theme files manually or use a plugin.

Learning More
Read more about custom fields in the WordPress Codex at https://codex.wordpress.org/Using_Custom_Fields.
主站蜘蛛池模板: 宁远县| 澎湖县| 三门县| 哈巴河县| 潢川县| 桂东县| 新竹县| 铜山县| 盱眙县| 浮山县| 长顺县| 甘德县| 伊宁县| 吐鲁番市| 颍上县| 蒲城县| 富蕴县| 渑池县| 平陆县| 仲巴县| 天等县| 开平市| 岳阳市| 延川县| 崇左市| 嵊泗县| 武宣县| 天祝| 湘阴县| 新营市| 镇宁| 铜陵市| 平江县| 离岛区| 新河县| 江西省| 淄博市| 遵义县| 大兴区| 通榆县| 洛宁县|