Home - martindubenet/Wordpress GitHub Wiki

Home  ][  Plugins  ][  Functions  ][  MySQL setup  ]

wiki tab WordPress

autoportrait Welcome to my shared personnal notes. Navigate the sidebar menu to find all my precious documents. Search for keywords.

 

Origins

On May 27h 2003 Matt Mullenweg annonced the availability of the first version of WordPress. Since then Mullenweg founded Automattic as corporation supervising the « Wordpress.COM » service while leaving the « Wordpress.ORG » as a PHP Open Source solution to be develop by the community.

 

Installing Wordpress.org

  • /wp-admin/install
  • /wp-login.php

1) Edit Post Category id #1

Cause nobody wants to publish within a non sense «Uncategorized» category, go and either edit the default category name and slug or create multiple categories if if you plan to publish more than just a blog post.

Note: The plural form is recommended since a category by nature contains multiple posts.

Original English French
Name Uncategorized News Actualités
Slug uncategorized news-post actualites

2) Delete or edit Post id #1

Nobody wants the default «Hello World!» post online on their public site.

3) Edite existing Page (post id #2)

  1. Rename the title « Home »,
  2. Replace the selected Default template by Front page,
  3. Rename the slug to home.

4) Common Settings for Canadians

nav option
General ➥ Site Title Your brand name (NOT the domain)
General ➥ Tagline A maximum of 66 characters to describe what this site is about
General ➥ Timezone New-York for Montrealers
General ➥ Date format Y-m-d
General ➥ Time format H:i
Writing ➥ Default Post Category Anything but «Uncategorized»
Reading ➥ Your homepage displays ⦿ A static page (select below)Choose your Home page
Discussion ➥ Other comment settings Users must be registered and logged in to comment
Discussion ➥ Before a comment appears Comment must be manually approved
Discussion ➥ Disallowed Comment Keys cashfucksubscribsexvaccin
Permalink ➥ Custom Structure /%category%/%postname%/

 

Required for theme and plugin development

Applications

  • Composer : A Dependency Manager for PHP.
  • WP-cli : A Terminal command line interface to update plugins, configure multisite installations and much more, without using a web browser. Installing WP-cli on macOS via Homebrew or on Windows.

 

Wordpress development references

For properly developing a Wordpress Theme or Plugin a good practice is to understand the mindset of the Wordpress developers themeself. A good start is the Gutenberg Editor project that public on December 2018 whit Wordpress version 5. This is the mile stone in WP development as Gutenberg is the first project developed with the JavaScript library ReactJS.

A great tutorial by Tom McFarlin called « Object-Oriented Programming in WordPress » to use Object Oriented Programing (OOP). This involves creating PHP classes and methods.

Wp Theme development

  1. wpHierarchy.comInteractive visualization of the Wordpress template hierarchy.
  2. underscores.meA free, open sourced on Github, starter theme maintain by Automatic, the company behind the Wordpress solution. This theme, NOT to be used as Parent Theme, is given away to Wordpress.org developers as a clean vanilla theme to start from when integrating mockups as a one time custom theme.Read the « _underscores Installation » guide.
  3. VVV (Varying Vagrant Vagrants)VVV is an open source local development environment focused on WordPress, powered by Vagrant. VVV is ideal for developing themes and plugins as well as for contributing to WordPress core.

Wp development stack

  1. NodeJS node_modules via npm or Webpack,
  2. Dart Sass

Wp projects tools

  1. Wordpress Script Module.
  2. Vagrant combined with VirtualBox on Intel chips : What Is Vagrant (And How Can You Use It for WordPress Development)?.
  3. Docker for Apple Silicon (M1) chips.

 

Helpful ressources

 

Custom Theme Development

See my Functions documentation here.

Wordpress native icons

  1. Choose by filtering from available Dashicons images.
  2. See the list of all available SVG files of Dashicons on Github.

Theme Unit Test Data

WordPress's theme unit test data is an XML data file, maintained by Automattic, that contains dummy content for WordPress theme development. It is used by WordPress theme developers to test their themes. It is also used by WordPress theme review team to test the themes for inclusion in WordPress theme directory.

  1. Download this XML file : https://wpcom-themes.svn.automattic.com/demo/theme-unit-test-data.xml
  2. Then go to your Wordpress site Dashboard. From the side menu, go to Tools > Import.
  3. From the IMPORT window, click on Wordpress > Install now (last option at he bottom).
  4. Click Activate Plugin & Run Importer.
  5. Click the Choose button and select the XML file you downloaded (from step 1).
  6. Your done. You shouild now have a wide variaty of contents to develop your theme with.

 

Code validation