wordpress-add custom pages

2010-12-06  来源:本站原创  分类:Internet  人气:145 

Transfer from http://www.hetaoblog.com/wordpress-add-customize-page/

Wordpress is an excellent platform for writing blog, now the direction of the trend towards cms;
Wordpress users in the use of the process, sometimes want to add a new page, and is very flexible, such as fully customizable, and needs a place to display the various parts of the template, such as menu, tag, etc.;

At this time, you can use wordpress page template function;

Here to wordpress 2.9 as an example:

1. To use the template directory, create a file called page-abc.php, add the following to the head

The following content can be easily written, both can easily write a hello, world, you can write code like this Include the header files

2. Back to wordpress, choose page -> New, and create a new page, the title is set to abc, this time a permanent link usually / abc /, the article content can be filled nothing;

Well, access to your address, such as the development of my local address, you can see the page of the


So, you can fully customize wordpress add a new page, by other means to accomplish the function of wordpress does not provide, and well integrated, and wordpress

Wordpress custom page on the issue, there are many online statement is completed in the first step in the template directory file, the second step, when the new page select superior to abc, I tested this approach, if you are using a custom template, which sometimes can not see the drop-down list of this new page template; but if you use 2.9 or later, you can use a file name described in this article to determine the relationship between the page template method

  • wordpress-add custom pages 2010-12-06

    Transfer from http://www.hetaoblog.com/wordpress-add-customize-page/ Wordpress is an excellent platform for writing blog, now the direction of the trend towards cms; Wordpress users in the use of the process, sometimes want to add a new page, and is

  • [Low-key Blue - Original] organizations add custom functions Dream 2010-09-10

    Add custom function file: include / extend.func.php Example: I add a member by member ID See the name of the function ************************************************** ***************** function GetMemberName ($ str) ( $ Dsql = new Dedesql (false);

  • ibus add custom phrases 2011-02-11

    ibus add custom phrases Original: http://www.cnblogs.com/lbsx/archive/2009/11/10/1599716.html Enter a word for each use Ctrl + Num have to choose, until the phrase entered, then press the space presented Another is in the normal commit state, the fir

  • Increase the Magento Admin features three: in the background set (System / Configuration) to add custom settings 2010-11-30

    Etc directory of the module system.xml new configuration file as follows: <?xml version="1.0"?> <config> <sections> <!-- To join the section identifier , This is the sales, you can also join their section --> <sales>

  • In the contacts to add custom mime type 2010-06-10

    public void saveFormality() { try { ContentValues values = new ContentValues(); values.put(Data.DATA1, this.getFormality() ? "1" : "0"); int mod = ctx.getContentResolver().update( Data.CONTENT_URI, values, Data.CONTACT_ID + "=&quo

  • How to add custom protocol protocol 2010-06-12

    Agreement to use public URL (String spec) public URL (URL context, String spec, URLStreamHandler handler) Code uses new URL ("http://yourenyouyu2008.javaeye.com/admin/blogs/new") Will go to match the http protocol processing new URL (null, "

  • Magento-as a commodity classification (category) add custom attributes method 2010-06-28

    Not available to the commodity classification Magento add properties features, but we often hope to Category and then add properties to filter products based on these attributes, what can be achieved in the Magento in it? (In the following two sites

  • EXT how to add custom template method 2010-10-13

    This should be considered new to post it. . Oh recently in a project, use the DataView display picture list, text link below each picture, doing two problems encountered in the process 1. Click the text link did not respond. 2. OnClick link custom me

  • Add Favorite pages of pure flex 2010-08-05

    1: var url11: String = "function showFavourite () (" + "Url = '" + PetResourceManager.favoritesData [0] + "'; title = '" + PetResourceManager.favoritesData [1] + "';" + "If (window.sidebar) (window.sidebar.addP

  • Add custom HTML elements attributes 2010-11-25


  • ExtJS JS function to add custom validation 2011-05-26

    Some complex validation we need to verify that we wrote the script. How to do it so universal? Such as the following conditions: The left side of S, M, L, XL total can not exceed 2 parts, the right not more than six. First, define the following valid

  • Standard application in the selection of the screen to add custom toolbar buttons 2011-05-12

    sap selection screen system on the standard toolbar has five buttons pre-defined, their corresponding function code is FC01-FC05, default is not activated. Users can use the SELECTION-SCREEN FUNCTION KEY i. to activate these 5 buttons (where i must b

  • Nginx add custom header 2011-04-18

    Corporate client needs to read the length field in the HEADER, length field value in Content-Length value is the same. Previously written by the apache in a perl module, and now switched to Nginx, need to develop Nginx module. Nginx modules written i

  • add custom attribute to arnold node in maya 2015-03-03


  • Empire CMS system, the latest injection vulnerability to invasion - Inspiration 2011-04-15

    First, the warm-up Before the introduction of this vulnerability, it is necessary to understand the concept - wide byte injection. Wide-byte single-byte as opposed to injection into the speaking. We usually single-byte is the direct injection in the

  • Wordpress2.9.1 Editor to add the code to highlight the custom button 2010-03-29

    Wordpress2.9.1 background paper prepared by the article that when the code editor to add plug-in SyntaxHighlighterl button to highlight how a simple editor for wordpress2.9.1 add custom buttons. Control Display button file in the editor wordpress2.9.

  • Wordpress2.9.1 editor to add code to highlight the custom button 2010-03-29

    This article, written back when that wordpress2.9.1 editor to add the button to highlight the code plug SyntaxHighlighterl how a simple editor for wordpress2.9.1 add custom buttons. Control button to display the file editor in wordpress2.9.1 have two

  • web page content of the page if you want the user to copy paste to add some custom information 2010-10-28

    If you allow users to copy the information on your site elsewhere paste, add custom information to take the following method. <SCRIPT Language=javascript> document.body.oncopy = function () { event.returnValue = false; var t = document.selection.cre

  • Making a static page wordpress 2010-10-08

    By default, WordPress will be displayed on the homepage of the site of recent logs. However, many WordPress users want to use a static home page or a more eye-catching as their homepage. If you do not want to make your site a "blog" type of look

  • 正确加载 Javascript 和 CSS 到 WordPress 2014-08-03

    有两种常用的 add_action 钩子可以加载 脚本和CSS到WordPress: init: 确保始终为您的网站头部加载脚本和CSS(如果使用home.php,index.php或一个模板文件),以及其他"前端"文章.页面和模板样式. wp_enqueue_scripts:"适当"的钩子方法,并不总是有效的,根据你的WordPress设置. 下面的所有例子都在WordPress多站点模式.WordPress 3.4.2 通过测试(如果不支持后续版本,请留言告知)