Skip to content

Instantly share code, notes, and snippets.

##Setting Up Meta Data Fields##

  • Install/Activate Custom Fields Suite WordPress Plug-In, Docs
  • Create new Field Group called Gallery Meta Data
  • Add a Field called Gallery Images and set the type as Loop, fill out the rest of the required fields, for placement rules attach this custom meta data to WordPress type of Page or whatever your requirements are. Hit Publish Figure 1
  • Next, Add additional field called Image. Hit Update Figure 2
  • Next, drag Image, field we just created, under the Gallery Images it needs to be a child of the Loop, Hit Update Figure 3

##Adding Meta Data to Pages##

@alenabdula
alenabdula / gist:f827d24e1ebd01eaa4a2501326355bd9
Created April 5, 2021 21:07
Facebook Breach Torrent Magnet Link
magnet:?xt=urn:btih:0595273ab674e05131a757f69f494a4285b429aa&dn=Facebook%20Leak%20%5B2019%5D%5B533M%20Records%5D%5B106%20Countries%5D
@alenabdula
alenabdula / git_cheat_sheet.sh
Last active November 20, 2022 16:37
Git Cheat Sheet
# Create git repository
git init
# Add all files to staging area
git add .
# Check current status
git status
# Commit staged changes for tracking
@alenabdula
alenabdula / .htaccess
Created May 28, 2015 15:49
Custom .htaccess file
# ----------------------------------------------------------------------
# | Application Redirects
# ----------------------------------------------------------------------
Redirect 301 /old http://www.example.com/new
# ----------------------------------------------------------------------
# | Cross-origin images
# ----------------------------------------------------------------------
<IfModule mod_setenvif.c>
<IfModule mod_headers.c>
@alenabdula
alenabdula / GravityForm-Dynamic-Selects.php
Created December 22, 2015 18:47
Gravity form dynamically populate select drop down with taxonomy terms
<?php
/**
* --------------------------------------------------
* Gravity Form dynamically populate drop-down
* select for Questions form ID 15
* 'gform_pre_render_14' - _14 represents form ID to filter
* --------------------------------------------------
*/
add_filter( 'gform_pre_render_14', 'pre_populate_gravity_select_for_MY_TAX' );
add_filter( 'gform_pre_validation_14', 'pre_populate_gravity_select_for_MY_TAX' );
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Simple AJAX Demo</title>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
</head>
<body>
<ul class="main-navigation" data-js="navigation">
preloadPhotographs() {
let photos = this.photographs;
let preloaded = new Array();
photos.forEach(photo => {
let image = new Image();
image.src = photo.source;
image.onload = () => {
preloaded.push(image);
if (preloaded.length === photos.length) {
this.loading = false;
<?php
/**
* Get User Metadata.
*/
$user_id = wp_get_current_user()->ID;
$user_data = get_user_meta($user_id);
var_dump($user_data);
/*
{
"ignored_packages":["Vintage"],
"overlay_scroll_bars": "enabled",
"line_padding_top": 3,
"line_padding_bottom": 3,
"always_show_minimap_viewport": true,
"bold_folder_labels": true,
"indent_guide_options": [ "draw_normal", "draw_active" ],
"color_scheme": "Packages/Material Theme/schemes/Material-Theme.tmTheme",
"theme": "Material-Theme.sublime-theme",

Sublime Issues

1. Color Scheme & Theme

Issue: User-Preferences JSON file color_scheme and theme revert back to original Monokai and Default theme.

Possible: Issue with Sublime, Material theme or other package updates, need to check!

Hardware & Software: