Home - martindubenet/Wordpress GitHub Wiki
[ Home ][ Plugins ][ Functions ][ MySQL setup ]
WordPress
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
Category id #1
1) Edit PostCause 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 | News | Actualités | |
Slug | uncategorized |
news-post |
actualites |
Post id #1
2) Delete or editNobody wants the default «Hello World!» post online on their public site.
Page (post id #2)
3) Edite existing- Rename the title « Home »,
- Replace the selected
template byDefault
Front page
, - 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 | cash fuck subscrib sex vaccin |
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
- wpHierarchy.comInteractive visualization of the Wordpress template hierarchy.
- 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.
- 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
Wp projects tools
- Wordpress Script Module.
- Vagrant combined with VirtualBox on Intel chips : What Is Vagrant (And How Can You Use It for WordPress Development)?.
- Docker for Apple Silicon (M1) chips.
Helpful ressources
- Codex
- Wordpress.StackExchange.com
- WordPress Support (portal)
- Wordpress.tv : Free videos tutorials
- Getting Started with WP.ORG Custom Theming : https://developer.wordpress.org/themes/getting-started/
- « The Wordpress loop explained for beginners » is simply the best blog post I've find to get an easy for (non experienced PHP) coders to understand this WP basic feature.
- SmashingMagazine's Wordpress related articles.
Custom Theme Development
See my Functions documentation here.
Wordpress native icons
- Choose by filtering from available Dashicons images.
- 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.
- Download this XML file : https://wpcom-themes.svn.automattic.com/demo/theme-unit-test-data.xml
- Then go to your Wordpress site Dashboard. From the side menu, go to
Tools
>Import
. - From the IMPORT window, click on Wordpress > Install now (last option at he bottom).
- Click Activate Plugin & Run Importer.
- Click the Choose button and select the XML file you downloaded (from step 1).
- Your done. You shouild now have a wide variaty of contents to develop your theme with.
Code validation
- Wordpress validation tools : https://developer.wordpress.org/themes/advanced-topics/validating-your-theme/