Skip to content

Instantly share code, notes, and snippets.

@kolbaba
Created July 30, 2022 19:09
Show Gist options
  • Save kolbaba/f5abfa69c8e45bf19bb156cc00595bca to your computer and use it in GitHub Desktop.
Save kolbaba/f5abfa69c8e45bf19bb156cc00595bca to your computer and use it in GitHub Desktop.

big document of gists

lando

lando init
choose panth
choose site
// cloning db
lando start
// ignore: copy local and open web browser - don't install wp yet
// ignore: touch .env DD_URL=SITE.lndo.site
lando pull
choose dev
go to/wp-content/themes/blankslate:
npm install
yarn watch

GIT push with token

git push https://<GITHUB_ACCESS_TOKEN>@github.com/<GITHUB_USERNAME>/<REPOSITORY_NAME>.git

Clear cache for your Web Application Firewall (WAF)

Go to your GoDaddy product page.
Under Website Security and Backups, select Manage next to the Website Security account you want to manage.
In the menu bar near the top of the page, select Firewall.
On the card with your domain name, select Clear Cache.
Clear Cache
Once the cache has been cleared a message will appear in the top right hand corner: The cache for coolexample.com is being cleared. Note that it may take up to two minutes for it to be fully flushed.

https://www.godaddy.com/help/clear-cache-for-your-web-application-firewall-waf-27383

wp reset query

// When acf fields aren't showing up AFTER certain pieces of content in the markup (loops) you need to throw this in there 
// to reset loop

<?php wp_reset_query(); ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment