• Home
  • Cloud
    • General
    • SaaS
    • BPaaS
    • PaaS
    • IaaS
    • Other Internet Hosted Applications
      • WordPress
        • WooThemes Canvas
          • WooThemes Canvas CSS
  • About me
  • Why Badly Wired?
  • Contact

Badly Wired

Alan's technical notebook - WordPress and other stuff

You are here: Home / Archives for Alan

Archiving old files after 18 months

2nd November 2019 by Alan Leave a Comment

In a WordPress installation I have an uploads folder that contains html files, that need to be archived away after 18 months. As the links are dynamically built I don’t need to worry about anything except moving them. If they were normal WordPress uploads that would be different. So in this case a simple monthly [Read the full article…]

Filed Under: Uncategorised  

Securing Gravity Forms Uploads

4th July 2019 by Alan Leave a Comment

By default, Gravity Forms uploads files into the uploads folder, so by definition, these are readable by anyone. The file names are obscure, but that isn’t good enough if you are uploading personal information like proof of address. One solution is to create a ‘safe’ protected by authorisation (e.g. basic auth over SSL ), so [Read the full article…]

Filed Under: Wordpress  

Hide a Google Form in a WordPress page until a box is ticked

26th January 2019 by Alan Leave a Comment

This is an example of an embedded Google Form that is revealed only on ticking a box If you agree to this, tick the box and a form appears :  Loading… This is how it is done: First get your ’embed code’  from your Google Form  ( Form – Send – <> Embed HTML ) [Read the full article…]

Filed Under: Wordpress  

Linking WooCommerce to a Spreadsheet using Google Sheets and the REST API

22nd August 2018 by Alan 18 Comments

IMPORTANT NOTE As of 22 Oct 2019 – this script seems to be in an infinite loop – so use this as a coding concept ONLY. I will debug it in due course, and update – BUT if you spot the issue first please do leave me a comment below with your solution. Following on [Read the full article…]

Filed Under: Code snippets, Google Apps for Works, Uncategorised, Useful Stuff, Wordpress  

WordPress REST API retrieve data and email it as an xls using Google Sheets

31st July 2018 by Alan Leave a Comment

Google Script to read a WordPress REST API endpoint into a Google Sheet and then email it ( no titles in this one, see other tutorials for titles ) 

Filed Under: Code snippets, Google Cloud, Wordpress  

Stopping Genesis Full menu loading momentarily before the responsive menu

10th April 2018 by Alan 3 Comments

Many, if not all of StudioPress’s older themes flash up the full menu for a glimpse before the responsive hamburger comes in. This doesn’t look great but is easy to fix in 2 steps. First, tweak the CSS so that the start of the responsive section reads body.js .genesis-nav-menu { display: none; } the responsive [Read the full article…]

Filed Under: Code snippets, Genesis, IaaS, Wordpress  

Code snippet to change notification of new users

5th February 2018 by Alan Leave a Comment

Example plugin to set admin notification of new users. In this case it uses the first user defined as shop_manager role <?php /* * * Plugin Name: Notify New Users to Shop Manager * Plugin URI: https://fullworks.net/products/custom-plugin-development/ * Description: Needs Woo Commerce of Course * Version: 1.0 * Author: Fullworks * Author URI: http://fullworks.net/ * [Read the full article…]

Filed Under: Code snippets, Uncategorised, Wordpress  

Putting it all together – authenticate, read and update WordPress from a spreadsheet

16th January 2018 by Alan 1 Comment

This is my fourth post in my series of how to build a script to manage WordPress data via the API and a spreadsheet.   If you have arrived here without looking at the others you probably should start at the beginning here. In this tutorial I’m going to handle updating and then pull it all [Read the full article…]

Filed Under: Code snippets, Google Apps for Works, Google Cloud, SEO, Uncategorised, Wordpress  Tagged: Google Scripts Wordpress REST API Google Sheets SEO

How to authenticate WordPress Rest API from Google Sheets / Scripts

15th January 2018 by Alan 2 Comments

This is the third tutorial in my series relating to integrating Google Sheets  and WordPress using the REST API. The first post covered reading basic post information into a spreadsheet.  The second post was about getting meta data from the REST API, which can be a little tricky. This one  covers authentication. Basically as an [Read the full article…]

Filed Under: Code snippets, Google Apps for Works, Google Cloud, SEO, Uncategorised, Wordpress  

Getting post meta via WordPress REST API

12th January 2018 by Alan 9 Comments

This the second post post in my series about getting and updating WordPress data via a spreadsheet.  The first post focused on the basics of Google Apps Scripting and the API call to the WP REST API – if you haven’t seen it you can read it here. This post is about meta data. In [Read the full article…]

Filed Under: Code snippets, Google Apps for Works, Google Cloud, SEO, Uncategorised, Wordpress  

« Previous Page
Next Page »

Categories

  • Applications
  • Cloud
    • General
    • Google Cloud
    • IaaS
    • Other Internet Hosted Applications
      • Wordpress
        • WooThemes Canvas
        • WooThemes Canvas CSS
    • SaaS
  • Code snippets
  • Discounts
  • Genesis
  • Google Apps for Works
  • Linux
  • News
  • SEO
  • Server setup
  • Services
  • Tech Tips
  • Uncategorised
  • Useful Images
  • Useful Stuff
  • WordPress Hosting
  • WordPress Plugins

Tags

background jobs beadcrumbs bind brandings Cache canvas Centos chrome css fail2ban Find firefox Flash fraud genesis gocardless godaddy Google google maps hackers internet explorer javascript KashFlow Linus linux Magento mapquest maps microsoft mysql news nohup php plugin plugins queens diamond jubilee replace SED SEO skype Varnish Virtualmin Webmin woothemes Wordpress

 

Affiliate and Privacy Notices

This site is free to use, but hopes to cover some costs through affiliate income, some products and links are affiliates and may earn the site advertising income.

Some affiliates use Cookies to track if you purchase from them, this allows them to apportion revenue to us you will need to refer to their specific privacy notices as to how you are tracked.

This site is a participant in the Amazon EU Associates Programme, an affiliate advertising programme designed to provide a means for sites to earn advertising fees by advertising and linking to Amazon.co.uk.

  • Privacy Policy

Copyright © 2021 · Badly Wired