to mój pierwszy post, więc jeśli coś przekręciłem, to przepraszam. Te subforum chyba najlepiej nadaje sie do tego tematu. Korzystam z silnika Wordpress na którym mam zainstalowany szablon Traction. demo widać tutaj: http://demo.thethemefoundry.com/traction/. Cały problem jaki mam, tkwi w samym sliderze - czyli elemencie "Featured Articles" problem w tym, że na moim blogu, skrypt generuje i wstawia mi tam wszystkie wpisy z bloga z pierwszej strony. Ja natomiast chciałbym, aby wstawiał tam tylko wpisy, które ja wybiorę. Trochę szukałem i znalazłem taki opis: http://ourthemes.blog.com/traction-featured-slider/ niestety nie za bardzo wiem co zrobić z drugą częścią, tak czy siak jestem w lesie.
Dalej, szukałem w plikach php i dotarłem do pliku :
<div class="feature-top clear"></div> <div id="feature" class="clear"> <div class="feature-main"> <div class="container"> <div class="slides"> <?php if (have_posts()) : while (have_posts()) : the_post(); $count_1++; ?> <?php if ( function_exists( 'add_theme_support' ) ) the_post_thumbnail( 'feature-big', array( 'class' => 'feature-photo' )); ?> <h3><a href="<?php the_permalink(); ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h3> <?php the_content(__( 'Read more', 'traction' )); ?> </div> <?php endwhile; endif; ?> </div> </div> </div><!--end feature-main--> <div class="feature-sidebar"> <h2><?php _e( 'Featured Articles', 'traction' ); ?></h2> <ul class="pagination"> <?php if (have_posts()) : while (have_posts()) : the_post(); $count_2++; ?> <?php $custom_field_description = get_post_meta($post->ID, 'short-description', $single = true); ?> <a class="clear" href="#"> <?php if ( function_exists( 'add_theme_support' ) ) the_post_thumbnail( 'feature-small' ); ?> <strong><?php the_title(); ?></strong> </a> </li> <?php endwhile; endif; ?> <?php wp_reset_query(); ?> </ul> <?php if ($count_2 > 1) { ?> <div id="slider-arrows"> <div class="slider-nav-left"> <a class="previous" href="#"><img src="<?php bloginfo( 'template_url' ); ?>/images/feature-sld-nav-left.png" alt="Scroll left" width="32" height="27"/></a> </div> <div class="slider-nav-right"> <a class="next" href="#"><img src="<?php bloginfo( 'template_url' ); ?>/images/feature-sld-nav-right.png" alt="Scroll right" width="32" height="27"/></a> </div> </div><!--end slider-arrows--> <?php } ?> </div><!--end feature-sidebar--> </div><!--end feature--> <div class="feature-bottom clear"></div>
ale, na tyle moja wiedza mi wystarczy, aby się zorientowac, że ten skrypt jedynie generuje cały wygląd tej cześci bloga.
A więc trafiłem potem na odpowiedni skrypt, który wszystko generuje, niestety tutaj kończy się moja wiedza na ten temat i nie mam żadnego pojęcia, na jakiej zasadzie są wybierane wpisy.
tutaj ten końcowy skrypt: http://pokazkod.pl/0978bbd3d240e7a8077ae34...f7d7472a3d6675b lub tutaj http://pokazkod.pl/0978bbd3d240e7a8077ae34...f7d74f76797e6f9
pomożecie mi jakoś ?
Pozdrawiam
Michał