Forum Replies Created
-
AuthorPosts
-
AdaoDesignParticipant
Hax, any news in this? We still really need to sort this and have all the galleries listed together whether they are locked or not!
Thanks
AdaoDesignParticipantHi Hax,
I have made the following page template with the custom query you gave me. I then use this page template as the template in the page attributes on the page that the image store shortcode call is being used on.
It still doesn’t return any posts, galleries or anything! Am I doing anything wrong? Even if I set the album template in the general image store galleries settings to the below template it still doesn’t do anything. Thanks for all your help, I’m looking forward to hearing back from you.
<?php
/**
* Template Name: IMS Gallery
*
* @package WordPress
* @subpackage Invictus
* @since Invictus 1.0
*/get_header(); ?>
<section id=”primary”>
<div id=”content” role=”main”><header class=”page-header”>
<h1 class=”page-title”><?php single_term_title( ); ?></h1>
</header><div class=”ims-gallery”>
<?php
$args = array(
‘post_type’ => ‘ims_gallery’,
‘tax_query’ => array(
array(
‘taxonomy’ => ‘ims_album’,
‘field’ => ‘id’,
‘terms’ => array(“IDS”)
)
)
);
$my_query = new WP_Query( $args );
?><?php while ($my_query->have_posts()) : $my_query->the_post(); ?>
<figure class=”hmedia ims-img”><?php
$images = get_children( array(
‘numberposts’ => 1,
‘post_type’=>’ims_gallery’,
‘post_parent’ => $post->ID,
‘orderby’ => ‘menu_order’,
‘order’ => ‘ASC’
));
foreach( $images as $image )
$data = wp_get_attachment_metadata( $image->ID );$size = ‘ width=”‘. $data[‘sizes’][‘thumbnail’][‘width’] .'” height=”‘.$data[‘sizes’][‘thumbnail’][‘height’].'”‘;
echo ‘<a href=”‘. get_permalink() . ‘” title=”View "’. get_the_title( $post->ID ).’" gallery” rel=”enclosure”>
<img src=”‘. $ImStore->get_image_url($image->ID, 2 ) .'” class=”colorbox-2″ alt=”‘.get_the_title( $post->ID ).'”‘.$size.’ /></a>’;
echo ‘<figcaption class=”gallery-caption”><span class=”fn ims-img-name”>’.get_the_title( $post->ID ).'</span></figcaption>’;
?></figure><?php endwhile; ?>
</div><?php //theme_content_nav( ‘nav-below’ , ‘galleries’ ); ?>
</div><!– #content –>
</section><!– #primary –><?php get_sidebar( ‘galleries’ ); ?>
<?php get_footer(); ?>AdaoDesignParticipantHax, I have made the following template file, and made the page which is being used as the image-store to use this template.
All this does though is prints out the main gallery page, and does not print out the children? When you click on the link it gives you it doesn’t actually go anywhere, just to the same page!
<?php
/**
* Template Name: IMS Gallery
*
* @package WordPress
* @subpackage Invictus
* @since Invictus 1.0
*/get_header(); ?>
<section id=”primary”>
<div id=”content” role=”main”><header class=”page-header”>
<h1 class=”page-title”><?php single_term_title( ); ?></h1>
</header><div class=”ims-gallery”>
<?php while ( have_posts( ) ) : the_post(); ?>
<figure class=”hmedia ims-img”><?php
$images = get_children( array(
‘numberposts’ => 1,
‘post_type’=>’ims_gallery’,
‘post_parent’ => $post->ID,
‘orderby’ => ‘menu_order’,
‘order’ => ‘ASC’
));
foreach( $images as $image )
$data = wp_get_attachment_metadata( $image->ID );$size = ‘ width=”‘. $data[‘sizes’][‘thumbnail’][‘width’] .'” height=”‘.$data[‘sizes’][‘thumbnail’][‘height’].'”‘;
echo ‘<a href=”‘. get_permalink() . ‘” title=”View "’. get_the_title( $post->ID ).’" gallery” rel=”enclosure”>
<img src=”‘. $ImStore->get_image_url($image->ID, 2 ) .'” class=”colorbox-2″ alt=”‘.get_the_title( $post->ID ).'”‘.$size.’ /></a>’;
echo ‘<figcaption class=”gallery-caption”><span class=”fn ims-img-name”>’.get_the_title( $post->ID ).'</span></figcaption>’;
?></figure><?php endwhile; ?>
</div><?php //theme_content_nav( ‘nav-below’ , ‘galleries’ ); ?>
</div><!– #content –>
</section><!– #primary –><?php get_sidebar( ‘galleries’ ); ?>
<?php get_footer(); ?>AdaoDesignParticipantHax, if I use that, will it still look like the standard image-store page like:
http://www.anievansphotography.co.uk/image-store/
Thanks
AdaoDesignParticipantHax, will that just literally print out a list of the galleries though? I would like it to look exactly as the image-store page, but with the extra secured galleries within the list.
AdaoDesignParticipantHax: “since they are password protected galleries you don’t want them showing on other places you can send the user to the gallery url or user the login form created by the plugin.”
Yes I do want them showing up along with all of the other galleries. Is there any way of doing this?
Thanks
AdaoDesignParticipantI also really need this!
The photography website we have developed http://www.anievansphotography.co.uk/image-store/ really need ALL the galleries (not protected and protected together) to show up on the image store page, and then if someone clicks on a password protected gallery, the secure login page should show up so they can login.
Hax: above you said to use a plugin that will allow you to list content type “ims_gallery”. What plugin? How can I do this?
Thanks
AdaoDesignParticipantHi, we also have this problem. We developed this site for a local photographer, and the shipping cost is not being added to the cart total and then not going through to PayPal. No other e-commerce plugin is installed.
Image Store on the site can be found here: http://www.anievansphotography.co.uk/image-store/
Currency is £GBP, Image Store version 3.0.9 running on WordPress 3.3.1, using Invictus theme from Themeforest. -
AuthorPosts