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
$('#myEditor').tinymce({ | |
... | |
content_css: '/path_to/styles.css', | |
paste_preprocess : function(pl, o) { | |
// Content string containing the HTML from the clipboard | |
o.content = strip_tags(o.content); | |
}, | |
... | |
}); |
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 | |
$categories = get_the_category($post->ID); | |
if ($categories) { | |
$category_ids = array(); | |
foreach($categories as $individual_category) $category_ids[] = $individual_category->term_id; | |
$args=array( | |
'category__in' => $category_ids, | |
'post__not_in' => array($post->ID), | |
'showposts'=>-1, // Number of related posts that will be shown. | |
'fields' => 'ids', |
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
(function($) { | |
$.fn.<PLUGIN_NAME> = function(settings) { | |
//default values | |
var config = { | |
}; | |
//using user defined values | |
if (settings) $.extend(config, settings); | |
//single element | |
// var element = this; |