<a id="nclick" href="#">
jQuery('#nclick').click(function(e)
{
e.preventDefault();
});
jQuery('#nclick').click(function(e)
{
e.preventDefault();
});
<?php $term = $wp_query->queried_object;
$getterm = $term->slug;
?>
<?php $args = array(
'post_type' => 'product',
'tax_query' => array(
array(
'taxonomy' => 'product_category',
'terms' => $getterm,
'field' => 'slug',
)
),
);
$product_latest = new WP_Query( $args ); ?>
<?php while( $product_latest->have_posts() ): $product_latest->the_post(); ?>
// Your content goes here
<?php endwhile; ?>
function custom_loginlogo() {
echo '';
}
add_action('login_head', 'custom_loginlogo');
add_filter( 'login_headerurl', 'custom_loginlogo_url' );
function custom_loginlogo_url($url) {
return 'http://www.your-site-url.com';
}
// Stay logged in for longer periods
add_filter( 'auth_cookie_expiration', 'keep_me_logged_in' );
function keep_me_logged_in( $expirein ) {
return 31556926; // 1 year in seconds
}
add_action( 'init', 'product_taxonomies', 0 );
function product_taxonomies() {
register_taxonomy(
'reviews_category',
'reviews',
array(
'labels' => array(
'name' => 'Product Category',
'add_new_item' => 'Add Product Category',
'new_item_name' => "New Product Category"
),
'show_ui' => true,
'show_tagcloud' => false,
'hierarchical' => true
)
);
}