In this note, wp theme’s components are supposed to be placed in folder wp-thi.

Tools

General

  • Theme is placed at ./wp-content/themes/
  • WP needs at least 2 files to exist: style.css and index.php.
  • Admin page wpsite.com/wp-admin.

WP theme components

Theme’s

echo get_bloginfo('template_directory'); // theme directory

Website’s

get_bloginfo( 'wpurl' ) // url
get_bloginfo( 'name' ) // name
get_bloginfo( 'description' ) // description

Post’s

the_content() // content
the_title() // title
the_date() // date
the_author() // author

Author’s

the_author_meta( 'description' ); // description