สอนสร้าง Plugin WordPress (11) : ทำความรู้จัก Custom Post Types

ตอบกระทู้

รูปแสดงอารมณ์
:icon_plusone: :like: :plusone: :gfb: :-D :) :( :-o 8O :? 8) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :wink: :!: :?: :idea: :arrow: :| :mrgreen: :angry: :baa: :biggrin:
รูปแสดงอารมณ์อื่นๆ

BBCode เปิด
[img] เปิด
[url] เปิด
[Smile icon] เปิด

กระทู้แนะนำ
   

มุมมองที่ขยายได้ กระทู้แนะนำ: สอนสร้าง Plugin WordPress (11) : ทำความรู้จัก Custom Post Types

สอนสร้าง Plugin WordPress (11) : ทำความรู้จัก Custom Post Types

โดย thatsawan » 25/10/2016 12:02 pm

สำหรับ WordPress นั้น บทความที่ถูกสร้างขึ้นมาแบ่งตามประเภทได้ เรียกว่า "Post Type" โดยจะมี Default Post Types ดังนี้
  • Post (Post Type: 'post')
    Page (Post Type: 'page')
    Attachment (Post Type: 'attachment')
    Revision (Post Type: 'revision')
    Navigation menu (Post Type: 'nav_menu_item')
รูปภาพ


นอกเหนือจาก Post Type ที่มีมาให้เเล้ว WordPress มีความพิเศษให้เราสามารถเพิ่ม Post Types เองได้ทำให้โปรแกรมมีความสามารถเพิ่มขึ้น โดยเราจะเรียกว่า “Custom Post Type”


ศึกษาเพิ่มเติมได้ที่นี่
https://codex.wordpress.org/Post_Types# ... Post_Types

ข้างบน