~/talk

From shortcode to block

Talkat WordCamp Europe 2023 · 2023-06-08..06-10· [wordpress]
links:none on file
slides:none on file

Takes a shortcode plugin and turns it into a dynamic block that renders a custom post type (WCFAQ) and taxonomy (wceufaq_cat) both in the editor and on the front end, while keeping the original shortcode for backward compatibility. Uses the WordPress block scaffold (wp create-block), npm install/build/start, and reuses the shortcode PHP logic in render.php. Pulls content into the editor with useEntityRecords from @wordpress/core-data, adds an inspector dropdown for taxonomy terms and color controls, and applies styles with CSS custom properties via useBlockProps, which work in editor and front end.

AI-written summary · about

  1. 0:00Introduction and setup
  2. 16:14Scaffolding the block
  3. 35:01Rendering FAQs in frontend
  4. 56:04Rendering FAQs in editor
  5. 1:14:20Adding category dropdown
  6. 1:36:47Adding color customization
  7. 1:53:00Summary and Q&A
~/search
type to search 6,518 conferences, 143,918 speakers and 192,133 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.