Trying to fix multiple category drop down

The HTML seems correct, as Price dropdown contains the right cat ID. I guess this is a JS problem, my first guess is that you shouldn’t use the same variable name in both scripts. Replace dropdown by dropdown_price for second one, like : <!–DROPDOWN SORT CATEGORY 2–> <script type=”text/javascript”> var dropdown_price = document.getElementById(“cat2”); function onCatPriceChange() … Read more

JS script not being included [closed]

WordPress uses the noConflict version of jQuery which does not allow $. use jQuery. or simple replace jQuery( document ).ready(function() by jQuery( document ).ready(function( $ ) hope that helps.

CSS conditional on custom field value

Without any other context (which means you will likely need to adapt to your specific needs), I would consider using the post_class filter. Using this filter, you can access the post meta for the current post, and conditionally add a CSS class to the post container. For example: function wpse129167_filter_post_class( $classes, $class, $postid ) { … Read more

Dynamic Gallery

You can use Advanced Custom Fields plugin – paid, to to that: http://www.advancedcustomfields.com/add-ons/gallery-field/ Plase what a video. Also on lightbox you need this Jquery plugin: http://www.no-margin-for-errors.com/projects/prettyphoto-jquery-lightbox-clone/ Create a custom post type with name gallery. Then create a page-gallery.php and put this code: : <?php $args=array( ‘post_type’ => ‘gallery’, ‘post_status’ => ‘publish’, ‘posts_per_page’ => 12, ‘paged’ … Read more

Combining fancybox with multiple thumbnail plugin

I managed to get the result on my own after much playing with the codes. Here is the working code 🙂 <div class=”collections_dresses_container”> <?php query_posts(‘posts_per_page=-1&cat=10’); if(have_posts()) : while(have_posts()) :the_post(); ?> <div class=”collections_thumbnails”> <?php $imgID = get_post_thumbnail_id(); $url = MultiPostThumbnails::get_post_thumbnail_url(get_post_type(), ‘secondary-image’); ?> <?php if ( has_post_thumbnail()) { $large_image_url = wp_get_attachment_image_src( get_post_thumbnail_id(), ‘large’); echo ‘<a class=”fancybox” href=”‘ … Read more