Ocena wątku:
- 0 głosów - średnia: 0
- 1
- 2
- 3
- 4
- 5
Wordpress- nierówne wyświetlanie wpisów
|
Liczba postów: 21
Liczba wątków: 16
Dołączył: 19-06-2012
Reputacja:
0
27-07-2012, 02:01
(Ten post był ostatnio modyfikowany: 27-07-2012, 02:12 przez mat2224.)
Witam,
Mam taki problem, że wordpress nie wyświetla mi równo wpisów w poszczególnych
kategoriach(nieraz robi białe przerwy). Poniżej zamieszczam zdjęcie i proszę o pomoc.
Liczba postów: 2,411
Liczba wątków: 14
Dołączył: 10-08-2009
Reputacja:
132
prosta sprawawa. Każdy taki wpis ma float left, ale nie ma min-height, przez co trzeci chce polecieć na lewo, ale napotyka na drodze pierwszy 
Albo dajesz min-height:....px; albo co 2 dajesz div z clear:both
Liczba postów: 21
Liczba wątków: 16
Dołączył: 19-06-2012
Reputacja:
0
to jest strona w którym znalazłem tą linijkę, czy mógłbyś mi ją odpowiednio edytować Kod: <?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
<?php
setPostViews(get_the_ID());
?>
<div class="main">
<?php if ($_GET['wpis'] == "dodany") {
echo '<p class="added">Twój post został dodany.</p>';
}
?>
<div class="titlebar"><h1 style="float: left;"><?php the_title(); ?></h1><div class="clear"></div></div>
<div class="clear"></div>
<div class="news">
<div class="thumbbig">
<?php if (has_post_thumbnail()) { ?>
<img src="<?php $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), "thumb_prev" );
echo $image[0]; ?>" alt="<?php the_title(); ?>" />
<?php } else { ?>
<img src="<?php bloginfo("template_url"); ?>/images/img-globebig.png" alt="Micronews" style="display: block; margin-left: auto; margin-right: auto;" />
<?php } ?>
</div>
<div class="excerptbig">
<?php echo (get_post_meta($post->ID, 'exc', true)); ?>
<div class="clear"></div>
<div class="socials">
<h4>Podziel się!</h4><div class="clear"></div>
<div class="socialbutton">
<div class="fbshare">
<div class="fb-like" data-href="<?php the_permalink(); ?>" data-send="false" data-layout="button_count" data-width="100" data-show-faces="true"></div>
</div>
</div>
<div class="socialbutton">
<g:plusone size="medium" href="<?php the_permalink(); ?>"></g:plusone>
</div>
<div class="socialbutton">
<a href="https://twitter.com/share" data-url="<?php the_permalink(); ?>" data-text="<?php the_title(); ?>" data-hashtags="stemlegal" class="twitter-share-button">Tweet</a>
</div>
<div class="clear"></div>
</div>
<div class="ratings">
<h4>Oceń:</h4><?php if(function_exists('the_ratings')) { the_ratings(); } ?>
</div>
</div>
<div class="clear"></div>
<div class="info">
<div class="url">źródło: <?php echo (get_post_meta($post->ID, 'source', true)); ?></div>
<div class="date"><span><?php the_time('j.m.Y');?></span> <?php the_time('G:i');?></div>
<div class="author">dodał: <?php the_author_posts_link(); ?></div>
<div class="clear"></div>
</div>
<div class="clear"></div>
</div>
<div class="content">
<?php the_content(); ?>
</div>
<div class="clear"></div>
<strong>wyświetleń: </strong><?php echo getPostViews(get_the_ID()); ?>
<div class="fb-comments" data-href="<?php the_permalink(); ?>" data-num-posts="10" data-width="700" style="margin-top: 35px;"></div>
</div>
<?php endwhile; // end of the loop. ?>
|
Podobne wątki… |
Wątek: |
Autor |
Odpowiedzi: |
Wyświetleń: |
Ostatni post |
|
Problem z wyglądem posta - wordpress |
Simisti |
0 |
1,966 |
29-05-2017, 01:23
Ostatni post: Simisti
|
|
wordpress-zabezpieczenia |
Alameida |
3 |
4,091 |
29-04-2016, 18:30
Ostatni post: Masterka5
|
|
Usuniecie tagów z głownej Wordpress |
unreal34 |
1 |
2,752 |
17-02-2015, 15:27
Ostatni post: Kartofelek
|
|
Rozwijana lista podkategorii - Wordpress |
mat2224 |
0 |
1,755 |
07-05-2013, 21:49
Ostatni post: mat2224
|
|
wyświetlanie zapytań |
przemysuaw |
1 |
2,153 |
18-03-2013, 03:47
Ostatni post: Engine
|
Użytkownicy przeglądający ten wątek:
|
|
Sponsorzy i przyjaciele
|
|
|