Manchester WordPress User Group August
Meeting notes from Manchester WordPress User Group August. Mike Little goes over the usual WordPress news and answers questions from attendees. Then Tom Nowell goes into some of the great things you can do with WP-CLI.
WordPress 4.0 now in beta
Hoping for an August release.
- Embedded videos now in preview
- Plugin install improvements
- When you first install you can choose the language
- Improvements to TinyMCE
- Updates to widgets in the Customizer
Not had a play yet, but does look interesting
The Future of the WordPress Codex
If you do find anything wrong in the Code, please do report it, or get an account, login and fix it yourself :smile:
Underscores now supports Sass
Does come with .css file, but you'll need to run something like grunt or gulp, or a gui such as codekit or livereload to compile further changes.
WordPress is a CMS (Whether You Like it or Not)
Blog post, good if you have a client who says "Isn't WordPress just a blogging platform?"
Other WordPress Events
Rhys Wynne is organising a walk for WordPress Europe - https://www.rhyswynne.co.uk/wordcamp-europe-walking-tour/
Q & A
How to prevent audio looping using a playlist
OMG! Mike's doesn't know the answer, that's a first :p
single audio - by default no autoplay, no loop
playlist - can't stop loop
Moving from a one site, to a multi-site.
For main content; Can do an export from the first site, then import it into the new multi-site.
Plugins can be a bit trickier, make sure they all exist on the the new multi-site, then look at copying the 'options' tables from the database.
How to change a multi-site, to a single site
Again export / import for content.
Plugin that may be able to help: https://wordpress.org/plugins/duplicator/
Again, can be done with some fiddling in the database, but can get a bit complicated, such as different table names.
Options for previewing mobile / tablet views of a theme
Mentioned Chrome Dev Tools > Emulation and also what's coming in Chrome Canary.
Also a useful bookmarklet: https://lab.maltewassermann.com/viewport-resizer/
Mention of Pattern Lab
Atomic design https://patternlab.io/
I also mentioned about smacss, bem, oocss.
On the break I spoke to Bellinda, who showed me this nice site she's done:
/www.first-step.uk.com/ (no longer online)
Responsive as well, nice job :smile:
Also, Judi showed me this rather nice e-commerce site: https://www.freepeople.com/
Make WordPress Training
23/09/2014 - WordPress Dev Night
SVG issue I mentioned
Tom Nowell on WP-CLI
Awesome idea for a slide intro by @Tarendai #mwug pic.twitter.com/lcw22xyhLH— Simon Owen (@s10wen) August 20, 2014
Tom gives examples of some of the things you can do using WP-CLI.
What is The Terminal? "this is an example of an old machine, just running the command line" (erm no it's not lol @ google chrome)
In the examples, Tom uses
> also commonly used is
$ this character can be set to anything, in fact I change mine to some ascii art and a lighting bolt emoji:
In the following examples you don't type out the
data command and you get https://www.cyberciti.biz/faq/unix-date-command-howto-see-set-date-time/
> command parameter1 parameter2 etc...
No one remembers all of them! Google is your friend :smile: also
--help is nice.
First off you'll need to install it. Some lovely instructions on how to do this are on the WP CLI home page:
Some useful things you can do with WP CLI
- Create Posts
- Create Users
- Download Plugins and Themes
- Database Queries
- Installing WordPress
e.g. adding an author to a site:
> wp user create bob [email protected] --role=author
Create a post:
wp post create --post_type=page --post_status=publish --post_title='A future post' --post-status=future --post_date='2020-12-01 07:00:00'
Install a plugin:
# Install the latest version from wordpress.org and activate
Check a status of a plugin:
wp plugin status bbpress
wp plugin activate bbpress
Create a user:
wp user create bob [email protected] --role=administrator
After this command was ran it also nicely generated a secure password.
Install plugin and activate from github:
wp plugin install https://github.com/Tarendai/better-wp-die/archive/master.zip --activate
Activated but with warnings! Oops, looks like Tom needs to update his plugin.
List plugin info:
wp plugin list
Show a list of plugins that need updating:
wp plugin list --update=available
wp plugin update akismet
Create a script to export the database
wp db drop
oops dropped the database!
wp db create
Also, thanks to Jack for a quick demo on
Browse by category:
- case study4
- chrome dev tools4
- clojure overtone2
- dev tips1
- raspberry pi1
- responsive web design1
- web development2