Please enable JavaScript.
Coggle requires JavaScript to display documents.
Wordpress (Custom Theme FILES (index.php (Structure, Attributes), header…
Wordpress
Custom Theme FILES
-
header.php
<head> tag
-
bloginfo('name');
- will be put on the <title> tag
wp_head();
- put after the <title> tag.
- contains wordpress commands
bloginfo('charset');
- put inside <meta charset=" tag
<body> tag
body_class();
- punt inside the <body open tag.
-
style.css
- contains the CSS formatting and the information of the theme.
-
-
-
Function
-
-
-
-
-
have_posts();
- to count the existing array of post in wordpress site
Usage
while(have_posts()){
// CONTENTS
}
the_post()
- contents of the current post in while loop.
-
-
-
Terminologies
Dev Enviroment
- Separate copy of you sit
- Only you can see it.
- Private
- Sandbox / Playground
Working Locally
- Can install WordPress on our PC.
- Don't need internet to work
- Only you can see it.
- Working locally.
Live/Production Environment
- Your real, public website
- Everyone can see it
- Known as Live
Server
- Where public website files live.
- Left on 24/7
- Were Wordpress usually lives
-
-