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
<div id="form"> | |
<form action="#" class="search"> | |
<input type="text" placeholder="typ een zoekwoord" class="filterinput" /> | |
<small><a href="#" id="filter_reset">Maak zoekveld leeg</a></small> | |
</form> | |
</div> | |
<script> | |
jQuery("#filter_reset").click(function($){ |
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 | |
/** | |
* WordPress | |
* Add Featured Image to RSS feed | |
* works with Active campaign feeds | |
**/ | |
// haha.nl - herbert hoekstra - 20201210 | |
function hahadev_rss_add_thumbnail() { | |
global $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 | |
// yoast wp seo plugin og:url override | |
// --------------------------- | |
// change the og:url to the current post url when using canonical url | |
// fix for share on instagram and Facebook to use the website url | |
// not the canonical url | |
// --------------------------- | |
add_filter( 'wpseo_opengraph_url', 'hhdev_change_opengraph_url' ); |
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 | |
// return only posts in same category for previous / next links | |
add_filter('avia_post_nav_settings', 'hhdev_avia_post_nav_settings_mod'); | |
function hhdev_avia_post_nav_settings_mod($settings) | |
{ | |
$settings['same_category'] = true; | |
return $settings; | |
} |
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 | |
// ENFOLD remove wp-admin editor listing from post/page lists | |
add_filter('display_post_states','hhdev_remove_post_state',999,2); | |
function hhdev_remove_post_state( $post_states, $post ) { | |
if("! has_blocks( $post->ID )") { | |
unset($post_states['wp_editor']); | |
} | |
if("!= Avia_Builder()->get_alb_builder_status($post->ID)") { |
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 | |
// WordPress: set no index for older posts in WordPress | |
// ----------------------------- | |
// check the post age | |
// returns true if older than... | |
function hhdev_is_old_post($days = 730) { | |
// 2 years old = 730 | |
NewerOlder