內容簡介
使用此外掛可以建立自訂文章,並且可以在這些自訂文章、文章和頁面中添加各種類型的元框。
現在要如何在模板文件中獲取這些元框的值?
在模板文件中呼叫此函數:
djmetabox_getvalues(postid,type,slug);
postid:該文章的 ID。
type:元框的類型,1、2、3、4、5 分別代表文本框、文本區、影像上傳、下拉式清單、核取方塊。
slug:該特定元框的縮略名。您可以通過查看添加該元框的文章、頁面或自訂文章中的元框來獲取它。
完整說明:http://www.tejuscreative.com/djmetabox.docx
我的 Facebook 個人資料:https://www.facebook.com/dhananjay.singh2
我的公司網站:http://tejuscreative.com/
外掛標籤
開發者團隊
原文外掛簡介
Using this plugin you can create custom post and you can add various types of metaboxes to those custom posts, posts and pages.
Now how to get value of these meta boxes in template files?
Call this function in your template file
djmetabox_getvalues(postid,type,slug);
postid : id of that post
type: type of meta box 1,2,3,4,5 for Text Field,Text Area,Image Upload,Dropdown List,Checkboxes respectively.
slug: slug of that perticular metabox you can get it by looking at post or page or cutom post in which you have added that meta box.
http://www.tejuscreative.com/djmetabox.docx
my facebook profile :https://www.facebook.com/dhananjay.singh2
