Skip to content

Instantly share code, notes, and snippets.

Thien Vu vungocthien

Block or report user

Report or block vungocthien

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
vungocthien / custom-past-events.php
Created Oct 24, 2019 — forked from jo-snips/custom-past-events.php
The Events Calendar: Custom Query for Past Events
View custom-past-events.php
global $post;
$get_posts = tribe_get_events(array('posts_per_page'=>-1, 'eventDisplay'=>'past') );
foreach($get_posts as $post) { setup_postdata($post);
<?php if ( has_post_thumbnail() ) { ?>
vungocthien /
Created Jan 4, 2018 — forked from guycalledseven/
Manually remove Paragon NTFS v15 leftovers MacOS
# after appcleaner does his magic, do this
sudo rm -rf "/Library/Application Support/Paragon Software/"
sudo rm /Library/LaunchDaemons/com.paragon-software.installer.plist
sudo rm /Library/LaunchDaemons/com.paragon-software.ntfs.loader.plist
sudo rm /Library/LaunchDaemons/com.paragon-software.ntfsd.plist
sudo rm /Library/LaunchAgents/com.paragon-software.ntfs.notification-agent.plist
sudo rm -rf /Library/Filesystems/ufsd_NTFS.fs/
sudo rm -rf /Library/PrivilegedHelperTools/com.paragon-software.installer
sudo rm -rf /Library/Extensions/ufsd_NTFS.kext/
vungocthien / wordpress-add-categories-to-a-custom-post-type
Last active Oct 9, 2017
WordPress - Display custom post types on the same category page as your default posts
View wordpress-add-categories-to-a-custom-post-type
add_filter('pre_get_posts', 'query_post_type');
function query_post_type($query) {
if( is_category() ) {
$post_type = get_query_var('post_type');
$post_type = $post_type;
$post_type = array('nav_menu_item', 'post', 'your-custom-posttype'); // don't forget nav_menu_item to allow menus to work!
return $query;
vungocthien / bxslider-arrow-key-control.js
Created Oct 8, 2017
Use arrow keys to control the bxslider
View bxslider-arrow-key-control.js
jQuery( document ).ready(function($) {
// save slider has a global var
var slider = $('.bxslider').bxSlider({
// your bxSlider options here...
// set keyboard listener
if (e.keyCode == 39) // Right arrow
You can’t perform that action at this time.