( Zaloguj | Zarejestruj )
![]() ![]() |
21.3.2010 - 17:46
Post
#1
|
|
|
aktywność: Grupa: +Bloger Postów: 11 Nr: 7 869 |
Witam korzystam ze skórki basicpress.
Daje ona możliwość dodawania miniaturek obrazków w polecanych i przy poście. Niestety nie wiem jak je dodawać, gdyż są jak na razie tylko domyślne. Czy ktoś miał już taką skórkę? Poradzi mi ktoś jak to dodawać, krok po korku? |
|
|
|
21.3.2010 - 17:53
Post
#2
|
|
![]() aktywność: ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Grupa: Redakcja Postów: 4 254 Nr: 5 919 |
Czy skórka którą posiadasz, nie zawiera czasem pliku readme.txt, albo na stronie skąd ją ściągnąłeś, nie było instrukcji do niej? Dobrze poszukaj ...
|
|
|
|
21.3.2010 - 18:00
Post
#3
|
|
|
aktywność: Grupa: +Bloger Postów: 11 Nr: 7 869 |
Szukałem ponad 30 minut. Zero, nic.
|
|
|
|
21.3.2010 - 18:16
Post
#4
|
|
![]() aktywność: ![]() ![]() ![]() ![]() Grupa: +Bloger Postów: 304 Nr: 7 102 |
Pokaz swój plik index.php, zobaczymy w jaki sposób są generowane te miniaturki. Prawdopodobnie będzie to phpThumb, ale mogę się mylić
-------------------- |
|
|
|
21.3.2010 - 18:37
Post
#5
|
|
|
aktywność: Grupa: +Bloger Postów: 11 Nr: 7 869 |
KOD <?php get_header(); ?>
<div id="main" class="clearfix"> <div id="posts" class="left"> <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?> <div class="post clearfix"> <div class="post-image left"> <?php if( get_post_meta( $post->ID, "image_value", true ) ) : ?> <img src="<?php bloginfo( 'template_directory' ); ?>/timthumb.php?src=<?php echo get_post_meta( $post->ID, "image_value", true ); ?>&w=158&h=158&zc=1" border="0" alt="<?php the_title(); ?>" /> <?php else : ?> <img src="<?php bloginfo( 'template_directory' ); ?>/timthumb.php?src=<?php echo wp_catch_first_image('m'); ?>&w=158&h=158&zc=1" border="0" alt="thumb" /> <?php endif; ?> </div> <div class="post-content right clearfix"> <h2 class="post-title"><a href="<?php the_permalink(); ?>" title="Continue reading "<?php the_title(); ?>""><?php the_title(); ?></a></h2> <div class="post-meta"> By <?php the_author(); ?> on <?php the_time('F jS, Y') ?> | <a href="<?php the_permalink(); ?>#comments"><?php comments_number('0 Comment','1 Comment','% Comments'); ?></a> </div> <div class="post-text"><?php wp_limit_post(300,'...'); ?></div> </div> </div> <?php endwhile; endif; ?> <div class="page_navi clearfix"><?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); } ?></div> </div> <div id="sidebar" class="right"> <?php get_sidebar(); ?> </div> </div> <?php get_footer(); ?> |
|
|
|
22.3.2010 - 00:13
Post
#6
|
|
![]() aktywność: ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Grupa: Redakcja Postów: 4 254 Nr: 5 919 |
Poczytaj o custom fields w WordPress'ie. Nazwa takiego pola to image_value, a jej wartość to link do obrazka.
|
|
|
|
![]() ![]() |
| : 24 05 12 - 10:26 |