Category: WordPress

Copy local environment mkdir roots

If you get a issue with deploy regarding it not being able to copy local path etc. Inside group_vars / ENVIRONMENT / wordpress_sites.yml For repo: Instead of choosing the main trellis git project as instructed choose the bedrock .git project and then make sure that repo_subtree_path is commented out.

orderby CMB2 field

By setting a meta_key to the field you want to sort after you can modify the order of a query based on a cmb2 field and also combine with others. This example sort by the field first then after date This example pre gets ALL posts for a CPT and then sorting based on cmb2 …