This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_action('elementor/query/relatedPostsBlog', function ($query) { | |
$page_id = get_the_ID(); | |
// Get the terms in the 'page-categ' taxonomy for the current page | |
$terms = get_the_terms($page_id, 'page-categ'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<style> | |
.elementor-form-fields-wrapper { | |
/* Style for normal state */ | |
input[type="checkbox"] { | |
-webkit-appearance: none; /* Removes default checkbox style */ | |
-moz-appearance: none; | |
appearance: none; | |
width: 16px; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php // Define allowed HTML tags | |
$allowed_tags = array( | |
'a' => array( | |
'href' => array(), | |
'title' => array(), | |
'target' => array(), | |
'rel' => array(), | |
), | |
'abbr' => array( | |
'title' => array(), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_action('elementor/query/readNextQueryx', function ($query) { | |
// Retrieve the custom field 'what_to_read_next_articles' | |
$postsID = get_post_meta(get_the_ID(), 'what_to_read_next_articles', true); | |
// Ensure $postsID is an array and contains only valid, existing post IDs | |
if (!is_array($postsID)) { | |
$postsID = explode(',', $postsID); | |
} | |
$postsID = array_filter($postsID, 'get_post'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Add Shortcode | |
function custom_breadcrumb_shortcode() { | |
// Get the queried object | |
$page = get_queried_object(); | |
// Initialize breadcrumb variable | |
$breadcrumb = '<ul class="breadcrumb">'; |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Twitter Verified Icon by Mira | |
// @version 1 | |
// @description Show a blue verified icon beside each Twitter user's name if they are a verified account. | |
// @author Mira | |
// @match *://twitter.com/* | |
// @grant none | |
// ==/UserScript== |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_action( 'elementor/query/solutionQuery', function( $query ) { | |
$tremID=get_queried_object_id(); | |
$query->set( 'posts_per_page', -1 ); | |
$query->set( 'post_type', 'solution' ); | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require_once($_SERVER['DOCUMENT_ROOT'] . '/wp-load.php'); | |
$args = array( | |
'numberposts' => 10, | |
'post_type' => 'ag_location', | |
'post_status' => 'publish', | |
'suppress_filters' => true | |
); | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function change_yoast_seo_og_meta() { | |
add_filter( 'wpseo_opengraph_desc', 'change_desc' ); | |
} | |
function change_desc( $desc ) { | |
// This article is actually a landing page for an eBook | |
if( is_singular( 123 ) ) { |
NewerOlder