Skip to content

Instantly share code, notes, and snippets.

@thobroni
thobroni / remove-taxonomy-slug.php
Last active June 27, 2019 11:05
Remove Taxonomy Base Slug
<?php
add_filter("request", "wprl_change_term_request", 1, 1);
function wprl_change_term_request($query)
{
$tax_name = "domain_category";
if (isset($query["attachment"]))
{
$include_children = true;
@nickcernis
nickcernis / functions.php
Last active September 6, 2020 06:34
Genesis Simple Share Shortcode
<?php
// Adds a [social-icons] shortcode to output Genesis Simple Share icons in posts
// https://wordpress.org/plugins/genesis-simple-share/
// Add the code below to your active theme's functions.php file,
// or use in a site-specific plugin.
// The shortcode takes no attributes; change your icon settings via Genesis → Simple Share.
add_shortcode( 'social-icons', 'gss_shortcode' );