Skip to content

Instantly share code, notes, and snippets.

View ndcisiv's full-sized avatar

Justin Patterson ndcisiv

View GitHub Profile
@fwazeter
fwazeter / readme.md
Last active March 16, 2022 21:03
Make WordPress Core Theme Mimic Gutenberg / FSE .HTML template rendering with multiple post type support.

Overview

Author: Frank Wazeter Author URL: https://wazeter.com

WordPress 5.8 marks a big step towards Full Site Editing and using Block Themes vs. traditional (classic) themes powered primarily by PHP template files. However, using currently experimental features in production is extremely risky due the developmental nature. This code shows how a WordPress theme can support and mimic Gutenberg Plugin's templating system for the block editor/template editor, while not having a dependency on the Gutenberg Plugin itself. Most existing references or documentation have a dependency of some kind on the Gutenberg plugin to make it work.

If full site editing is only fully available in testing, why implement features now in a WordPress classic theme?

The future is undeniably wrapped around full site editing - that everything can be manipulated through blocks and corresponding

@donnierayjones
donnierayjones / LICENSE
Last active June 24, 2024 14:28
Render Bootstrap as "small" layout when printing
Copyright (C) 2016 Donnie Ray Jones
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
@petermaurer
petermaurer / Name Mangler advanced snippet
Created November 22, 2012 19:42 — forked from theamnesic/Name Mangler advanced snippet
Hardcore evil characters cleaner for Name Mangler (shortened, fixed "g" equivalents, some other minor changes)
[findRegularExpression "[ÀàÁáÂâÃãÄäÅåĀāĂ㥹ǞǟǺǻ]", <name>, "a"]
[findRegularExpression "[ÆæǼǽ]", <name>, "ae"]
[findRegularExpression "[Ḃḃ]", <name>, "b"]
[findRegularExpression "[ĆćÇçČčĈĉĊċ]", <name>, "c"]
[findRegularExpression "[ḐḑĎďḊḋĐđÐðDZdzDŽdž]", <name>, "d"]
[findRegularExpression "[ÈèÉéĚěÊêËëĒēĔĕĘęĖėƷʒǮǯ]", <name>, "e"]
[findRegularExpression "[Ḟḟƒfffiflffifflſt]", <name>, "f"]
[findRegularExpression "[ǴǵĢģǦǧĜĝĞğĠġǤǥ]", <name>, "g"]
[findRegularExpression "[ĤĥĦħ]", <name>, "h"]
[findRegularExpression "[ÌìÍíÎîĨĩÏïĪīĬĭĮįİıIJij]", <name>, "i"]