#wordpress #wordpresstutorial
Hello! In this video I'm going to show you 3 ways how you may create a page template in wordpress.
Method 1: Page Template via a File with a Custom Name (Classic Method)
Method 2: Page Template via a File with a Specific Name (Template File Hierarchy)
Method 3: Page Template via the "template_include" Filter
Timecodes:
00:00:22 - explain the difference between post and page
00:00:59 - show how it looks like in a wp_posts table in database
00:02:09 - by default wordpress uses page.php for as a page template
00:02:31 - create a template with a custom name (method nr 1)
00:03:50 - choose a template in admin panel for a page
00:04:31 - create a page-{page-slug}.php template (method nr 2)
00:06:08 - explain template hierarchy for page from codex
00:07:08 - use a hook template_include (method nr 3)
00:10:42 - fixing 5xx error
00:11:35 - summarize and conslusion
📖👤 WHO AM I?
My name is Andrew. I am software developer from Ukraine🇺🇦 who lives in Poland 🇵🇱. I started programming in long 2012. I am doing web and like to share things on youtube. On my channel you will videos both about technical and personal things about me. Join me!
SOCIAL NETWORKS
📸 Instagram - / andrewwwlife94
📱 TikTok - / andrewwwlife
📚 LinkedIn - / andrii-sukhoi-0a3773125
🌳 Github - https://github.com/sukhoy94