Skip to content

Instantly share code, notes, and snippets.

@am3000
am3000 / .gitignore
Last active January 30, 2019 14:19 — forked from salcode/.gitignore
See https://salferrarello.com/wordpress-gitignore/ for the latest version of my WordPress .gitignore file
# -----------------------------------------------------------------
# .gitignore for WordPress
# Bare Minimum Git
# http://ironco.de/bare-minimum-git/
# ver 20150227
#
# This file is tailored for a WordPress project
# using the default directory structure
#
# This file specifies intentionally untracked files to ignore
<a href="https://www.linkedin.com" rel="me">
<img src="images/linkedin.svg" class="social-icon">
</a>
// CSS
.social-icon {
margin-left: 10px;
height: 20px;
opacity: 0.7;
transition: opacity 0.15s linear;
@am3000
am3000 / gist:af8555111d47373450e98ea63e4efd7c
Created June 26, 2017 12:20
Wordpress WP_Query order by title AND meta_key
$args = [
'post_type' => 'tq_team',
'posts_per_page' => -1,
'meta_key' => 'priority',
'orderby' => [
'meta_value_num' => 'ASC',
'title' => 'ASC'
]
];
@am3000
am3000 / gist:5c9ab61b2ed240d355c3c612e49443eb
Created May 24, 2017 08:36
WP remove themify meta boxes on custom post type
add_action( 'do_meta_boxes','my_removeThemifyMetaboxes');
function my_removeThemifyMetaboxes(){
remove_meta_box( 'themify-meta-boxes', 'my-custom-post-type', 'normal' );
}