This file contains 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 | |
/** | |
* The following code is a copy of the code I recently used on the site of a client | |
* It uses the Aqua-Resizer script (https://github.com/syamilmj/Aqua-Resizer) to | |
* dynamically resize the slider images to the size needed. | |
* | |
* @source Piet Bos http://senlinonline.com | |
*/ | |
echo '<div class="slider-wrapper">'; |
This file contains 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 | |
/** | |
* Custom Walker used in Flatbook theme | |
* | |
* @source //themeforest.net/item/flatbook-flat-ebook-selling-wordpress-theme/6023410 | |
* @ref //lnkd.in/dRjx4R6 | |
*/ | |
class description_walker extends Walker_Nav_Menu{ | |
function start_el(&$output, $item, $depth = 0, $args = array(), $id = 0){ | |
//global $wp_query; |
This file contains 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 4th image different size to query; LinkedIn post http://lnkd.in/dbxp28Z | |
* | |
*/ | |
/* Cleaner to write arguments separately; 'order_by' => 'date' is not necessary as that is the default */ | |
$args = array( | |
'post_type' => 'post', | |
'category_name' => 'uitgelicht', |
This file contains 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 | |
/** | |
* Gravity Wiz // Require Minimum Character Limit for Gravity Forms | |
* | |
* Adds support for requiring a minimum number of characters for text-based Gravity Form fields. | |
* | |
* @version 1.0 | |
* @author David Smith <david@gravitywiz.com> | |
* @license GPL-2.0+ | |
* @link http://gravitywiz.com/... |
This file contains 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
<wpml-config> | |
<admin-texts> | |
<key name="toc-options"> | |
<key name="heading_text" /> | |
<key name="visibility_show" /> | |
<key name="visibility_hide" /> | |
<key name="sitemap_pages" /> | |
<key name="sitemap_categories" /> | |
</key> | |
</admin-texts> |
This file contains 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 | |
/** | |
* Adding Custom post type counts in 'Right now' Dashboard widget. | |
* Acording this changes : | |
* - https://core.trac.wordpress.org/ticket/26571 | |
* - https://core.trac.wordpress.org/ticket/26495 | |
* now you can't use 'right_now_*' action API to show your custom post type count from your Dashboard. | |
* But if you running WP 3.8 or above, you can use 'dashboard_glance_items' instead. | |
* | |
* @package Wordpress |
This file contains 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
// use this only for the metabox script of Rilwis - http://www.deluxeblogtips.com/p/meta-box-script-for-wordpress.html#images | |
// the code below shows the image with a link to itself (to be used on thickbox overlays) | |
global $wpdb; | |
$meta = get_post_meta(get_the_ID(), 'sl_screenshots', false); | |
$meta = implode(',', $meta); | |
$images = $wpdb->get_col(" | |
SELECT ID FROM $wpdb->posts | |
WHERE post_type = 'attachment' |
OlderNewer