guillaumeabxl
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Show all thumbnails Post from a categoryThanks for your help. I’ll find another solution.
Forum: Fixing WordPress
In reply to: Show all thumbnails Post from a category@lee@digitalacorn
Sorry but I don’t follow you. When loading the page in a browser I don’t have any error message. Is that what you need ?
Thank you.
Forum: Fixing WordPress
In reply to: Show all thumbnails Post from a categoryThank you for your help.
@lee@digitalacorn
I try print_r($custom); but I still don’t have the thumbnails showing up.Forum: Fixing WordPress
In reply to: Show all thumbnails Post from a categoryThis is the full code for the page :
get_header(); ?> <div id="content" class="grid_12"> <div class="indent"> <?php include_once (TEMPLATEPATH . '/title.php');?> <?php global $more; $more = 0;?> <?php $values = get_post_custom_values("category-include"); $cat=$values[0]; ?> <?php $catinclude = 'portfolio_category='. $cat ;?> <?php $temp = $wp_query; $wp_query= null; $wp_query = new WP_Query(); ?> <?php $wp_query->query("post_type=portfolio&". $catinclude ."&paged=".$paged.'&showposts=8'); ?> <?php if ( ! have_posts() ) : ?> <div id="post-0" class="post error404 not-found"> <h1 class="entry-title"><?php _e( 'Not Found', 'theme1603' ); ?></h1> <div class="entry-content"> <p><?php _e( 'Apologies, but no results were found for the requested archive. Perhaps searching will help find a related post.', 'theme1603' ); ?></p> <?php get_search_form(); ?> </div><!-- .entry-content --> </div><!-- #post-0 --> <?php endif; ?> <div id="gallery" class="two_columns"> <ul class="portfolio"> <?php // the query $the_query = new WP_Query( 'cat=2' ); ?> <?php $i=1; if ( $the_query->have_posts() ) while ( $the_query->have_posts() ) : the_post(); if(($i%2) == 0){ $addclass = "nomargin"; } ?> <?php $custom = get_post_custom($post->ID); $lightbox = $custom["lightbox-url"][0]; ?> <li class="<?php echo $addclass; ?>"> <?php $thumb = get_post_thumbnail_id(); $img_url = wp_get_attachment_url( $thumb,'full'); //get img URL $image = aq_resize( $img_url, 420, 247, true ); //resize & crop img ?> <?php if($lightbox!=""){ ?> <span class="image-border"><a class="image-wrap" href="<?php echo $lightbox;?>" data-gal="prettyPhoto[gallery]" title="<?php the_title();?>"><img src="<?php echo $image ?>" alt="<?php the_title(); ?>" /><span class="zoom-icon"></span></a></span> <?php }else{ ?> <span class="image-border"><a class="image-wrap" href="<?php the_permalink() ?>" title="<?php _e('Permanent Link to', 'theme1603');?> <?php the_title_attribute(); ?>" ><img src="<?php echo $image ?>" alt="<?php the_title(); ?>" /></a></span> <?php } ?> <div class="folio-desc"> <h4><a href="<?php the_permalink(); ?>"><?php $title = the_title('','',FALSE); echo substr($title, 0, 40); ?></a></h4> </div> </li> <?php $i++; $addclass = ""; endwhile; ?> </ul> <div class="clear"></div> </div> <?php if(function_exists('wp_pagenavi')) : ?> <?php wp_pagenavi(); ?> <?php else : ?> <?php if ( $wp_query->max_num_pages > 1 ) : ?> <nav class="oldernewer"> <div class="older"> <?php next_posts_link( __('« Older Entries', 'theme1603')) ?> </div><!--.older--> <div class="newer"> <?php previous_posts_link(__('Newer Entries »', 'theme1603')) ?> </div><!--.newer--> </nav><!--.oldernewer--> <?php endif; ?> <?php endif; ?> <!-- Page navigation --> <?php $wp_query = null; $wp_query = $temp;?> </div> </div><!-- #content --> <!-- end #main --> <?php get_footer(); ?>
Forum: Fixing WordPress
In reply to: Show all thumbnails Post from a categoryOK, I added the Query before the loop but no thumbnails are display. Is “4” the ID : ‘cat=4’
<ul class="portfolio"> <?php // the query $the_query = new WP_Query( 'cat=4' ); ?> <?php $i=1; if ( $the_query->have_posts() ) while ( $the_query->have_posts() ) : the_post(); if(($i%2) == 0){ $addclass = "nomargin"; } ?> <?php $custom = get_post_custom($post->ID); $lightbox = $custom["lightbox-url"][0]; ?> <li class="<?php echo $addclass; ?>"> <?php $thumb = get_post_thumbnail_id(); $img_url = wp_get_attachment_url( $thumb,'full'); //get img URL $image = aq_resize( $img_url, 420, 247, true ); //resize & crop img ?> <?php if($lightbox!=""){ ?> <span class="image-border"><a class="image-wrap" href="<?php echo $lightbox;?>" data-gal="prettyPhoto[gallery]" title="<?php the_title();?>"><img src="<?php echo $image ?>" alt="<?php the_title(); ?>" /><span class="zoom-icon"></span></a></span> <?php }else{ ?> <span class="image-border"><a class="image-wrap" href="<?php the_permalink() ?>" title="<?php _e('Permanent Link to', 'theme1603');?> <?php the_title_attribute(); ?>" ><img src="<?php echo $image ?>" alt="<?php the_title(); ?>" /></a></span> <?php } ?> <div class="folio-desc"> <h4><a href="<?php the_permalink(); ?>"><?php $title = the_title('','',FALSE); echo substr($title, 0, 40); ?></a></h4> </div> </li> <?php $i++; $addclass = ""; endwhile; ?> </ul>
Forum: Fixing WordPress
In reply to: Show all thumbnails Post from a categoryThis will show post from category 4
$query = new WP_Query( 'cat=4' );
So if I want to have the thumbnail should I write this :
$query = new WP_Query( 'thumbnail','cat=4' );
Forum: Fixing WordPress
In reply to: Show all thumbnails Post from a categoryThank you,
I read the article and wrote the following code :
$query = new WP_Query( array( 'thumbnail', 'posts_per_page' => 6, 'cat' => 2 );
Trying to get 6 thumbnails from category ID 2.
I’m not sure where to add the code, without success I try here :
<?php <strong>$query = new WP_Query( array( 'thumbnail', 'posts_per_page' => 6, 'cat' => 2 );</strong> $thumb = get_post_thumbnail_id(); $img_url = wp_get_attachment_url( $thumb,'full'); //get img URL $image = aq_resize( $img_url, 420, 247, true ); //resize & crop img ?>
Forum: Plugins
In reply to: [Slideshow] Default settingsOK, I think I got it :
classes/SlideshowPluginSlideshowSettingsHandler.php
Can you confirm for other people in need ; )
Thank youForum: Plugins
In reply to: [Slideshow] Change default settingsHello and sorry for the bump.
I’am actaully also searching for the default settings to be changed.
Could it still be done in ‘SlideshowPluginPostType.php’ ?
I open this page and didn’t find anything about default settings. Maybe it change since the new plugin version.Perfect, thank you Donleona.
Hello,
I have the same question. What Simple Gallery’s code should I directly use inside single post template ?
Forum: Plugins
In reply to: [WPNewCarousels] Problems with "random" effectCan someone helps on this issue ?
ThanksForum: Plugins
In reply to: [WPNewCarousels] Problems with "random" effectis there a short code I can use with the following to randomize the slideshow ?
Use shortcode on any wordpress page [wpnewcarousel name=”CAROUSEL_NAME” height=”” width=”” startslide=”” animationspeed=”” imagepausetime=”” shownav=”” hoverpause=””]
I try using randomStart=”true” but didn’t work.
Forum: Plugins
In reply to: [WPNewCarousels] Problems with "random" effectHere is the script generated in my page :
<script type=”text/javascript”>
jQuery(document).ready(function() {
jQuery(“.nivoSlider1”).nivoSlider({
effect: “fade”,
startSlide:0,
animSpeed:0,
pauseTime:4000,
controlNav:false,
pauseOnHover:false
});
});
</script>