How to modify product page for Jigoshop

You need to edit the loop-shop.php file under template (remember the file can be auto updated, so you need a backup.) <?php global $columns, $per_page; do_action(‘jigoshop_before_shop_loop’); $loop = 0; if (!isset($columns) || !$columns) $columns = apply_filters(‘loop_shop_columns’, 4); //if (!isset($per_page) || !$per_page) $per_page = apply_filters(‘loop_shop_per_page’, get_option(‘posts_per_page’)); //if ($per_page > get_option(‘posts_per_page’)) query_posts( array_merge( $wp_query->query, array( ‘posts_per_page’ => … Read more

Secure Pages Best Practice

Not sure about the best practices, but I have a few custom login-sensitive pages which simply display a message if user is not logged and is trying to view the page directly: $logged_in = is_user_logged_in(); if($logged_in) { ?> <article id=”post”> <?php the_content(); ?> </article> <?php } else { _e(‘You are not logged in. Please ‘, … Read more

Auto gallery from folder contents

It sounds like you just need shortcode to gather the contents of a folder and display a grid of those items. The shortcode is pretty easy to setup. $gallery = do_shortcode(‘[folder_gallery title=”XYZ” folder=”wp-content/uploads/2015/11″]’ ); echo $gallery; Then you just need to glob a directory and render your gallery from the files. I didn’t include a … Read more