Display caption with post thumbnail in WordPress

 

Install WordPress with WP-CLI

Download WordPress core files

$ wp core download

You can download WordPress in your language with adding option
--locale=your_language_code to the command. Check the list of localizations for your locale. See documentation for all the other options.

Create wp-config.php file

$ wp core config --dbname=your_db --dbuser=your_db_user --dbpass=your_db_password --dbhost=your_db_host

Required parameters are:

  • dbname: Database name
  • dbuser: Database user name
  • dbpass: Database password
  • dbhost: Database host

See documentation for optional parameters

Create WordPress tables

$ wp core install --url="http://your_site.fi" --title="Your blog" --admin_user="admin_user_name" --admin_password="admin_pwd" --admin_email="your_email"

Required parameters are:

  • url: Your site url
  • title: Your site title
  • admin_user: Admin user name
  • admin_password: Password for admin user
  • admin_email: Admin users email address

Now you should see a line that says
Success: WordPress installed successfully.

Read more about wp-cli commands

Add excerpt support to pages in WordPress

Add following code to your themes functions.php file.

Create additional image sizes in WordPress

Register additional image sizes

Additional image sizes can be defined in your themes functions.php. In example

Full documentation can be found at WordPress Codex

Displaying additional image sizes in your theme

Previously upload images do not have the new image size. Images can be generated with Regenerate Thumbnails plugin