Pereiti prie turinio

Wordpress postai


Rekomenduojami pranešimai

hmm, kurioj čia vietoj dėti? :lol:

 

<?php get_header(); ?>

<div id="content" class="narrowcolumn">



<?php if (have_posts()) : ?>



	<?php while (have_posts()) : the_post(); ?>



		<div <?php post_class(); ?> id="post-<?php the_ID(); ?>">

			<div class="left">

				<div class="thumb" style="background: url(<?php bloginfo('url'); ?>/<?php echo get_post_meta(get_the_ID(), '_video_thumbnail_small',true)?>) no-repeat 50% 50%;" alt="<?php the_title_attribute('echo=1'); ?>">

					<a href="<?php the_permalink() ?>" rel="bookmark" title="Read summary and watch <?php the_title_attribute('echo=1'); ?>"><div></div></a>			 

				  </div>

				<div style="display:inline;">

					<span class="left watch-btn"><a href="<?php the_permalink() ?>" rel="bookmark" title="Watch <?php the_title_attribute('echo=1'); ?> online streaming for free"><img src="<?php bloginfo('stylesheet_directory'); ?>/images/watch-btn.gif" alt="watch" /></a></span>

					<span class="left ratings"><?php if(function_exists('the_ratings')) { the_ratings(); } ?></span>

				</div>

			</div>

			<div class="right">

				<div class="part1">

				<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Watch <?php the_title_attribute('echo=1'); ?> online"><?php the_title(); ?></a></h2>

				<div class="entry"><?php the_excerpt(''); ?></div>

				</div>

				<div class="read-more"><a href="<?php the_permalink() ?>" rel="bookmark" title="Read summary and watch <?php the_title_attribute('echo=1'); ?>">read more...</a></div>

				<div class="postmetadata"><?php comments_popup_link('Add Your Link', '1 Link', '% Links', '', 'Adding Links Closed' ); ?> | Category: <?php echo get_the_category_list(', ');?></div>

			</div>

		</div>



	<?php endwhile; ?>



	<div class="navigation">	  

	<div class="alignleft"><?php previous_posts_link('<div class="pre"></div>') ?></div>	

		<?php if(function_exists('wp_pagenavi')){ wp_pagenavi(); } else { ?>	

		<?php } ?>

	<div class="alignright"><?php next_posts_link('<div class="next"></div>') ?></div>

	</div>



<?php else : ?>



	<h2 class="center">Not Found</h2>

	<p class="center">Sorry, but you are looking for something that isn’t here.</p>



<?php endif; ?>



</div>



<?php get_sidebar(); ?>



<?php get_footer(); ?>

 

Šitas kodas kaip supratau:

<?php

if (is_home()) {

query_posts("cat=-28");

}

?>

Nuoroda į pranešimą
Dalintis kituose puslapiuose
<?php get_header(); ?>

 

<div id="content" class="narrowcolumn">

 

 

 

<?php if (have_posts()) : ?>

 

<?php if (is_home()) { query_posts("cat=-28"); } ?>

 

<?php while (have_posts()) : the_post(); ?>

 

 

 

<div <?php post_class(); ?> id="post-<?php the_ID(); ?>">

 

<div class="left">

 

<div class="thumb" style="background: url(<?php bloginfo('url'); ?>/<?php echo get_post_meta(get_the_ID(), '_video_thumbnail_small',true)?>) no-repeat 50% 50%;" alt="<?php the_title_attribute('echo=1'); ?>">

 

<a href="<?php the_permalink() ?>" rel="bookmark" title="Read summary and watch <?php the_title_attribute('echo=1'); ?>"><div></div></a>

 

</div>

 

<div style="display:inline;">

 

<span class="left watch-btn"><a href="<?php the_permalink() ?>" rel="bookmark" title="Watch <?php the_title_attribute('echo=1'); ?> online streaming for free"><img src="<?php bloginfo('stylesheet_directory'); ?>/images/watch-btn.gif" alt="watch" /></a></span>

 

<span class="left ratings"><?php if(function_exists('the_ratings')) { the_ratings(); } ?></span>

 

</div>

 

</div>

 

<div class="right">

 

<div class="part1">

 

<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Watch <?php the_title_attribute('echo=1'); ?> online"><?php the_title(); ?></a></h2>

 

<div class="entry"><?php the_excerpt(''); ?></div>

 

</div>

 

<div class="read-more"><a href="<?php the_permalink() ?>" rel="bookmark" title="Read summary and watch <?php the_title_attribute('echo=1'); ?>">read more...</a></div>

 

<div class="postmetadata"><?php comments_popup_link('Add Your Link', '1 Link', '% Links', '', 'Adding Links Closed' ); ?> | Category: <?php echo get_the_category_list(', ');?></div>

 

</div>

 

</div>

 

 

 

<?php endwhile; ?>

 

 

 

<div class="navigation">

 

<div class="alignleft"><?php previous_posts_link('<div class="pre"></div>') ?></div>

 

<?php if(function_exists('wp_pagenavi')){ wp_pagenavi(); } else { ?>

 

<?php } ?>

 

<div class="alignright"><?php next_posts_link('<div class="next"></div>') ?></div>

 

</div>

 

 

 

<?php else : ?>

 

 

 

<h2 class="center">Not Found</h2>

 

<p class="center">Sorry, but you are looking for something that isn’t here.</p>

 

 

 

<?php endif; ?>

 

 

 

</div>

 

 

 

<?php get_sidebar(); ?>

 

 

 

<?php get_footer(); ?>

Jei neklystu, tai taip.

Nuoroda į pranešimą
Dalintis kituose puslapiuose

Bandyk šitą

<?php get_header(); ?>

 

<div id="content" class="narrowcolumn">

 

 

 

<?php if (have_posts()) : ?>

 

<?php

if(is_home()){

$limit = get_option('posts_per_page');

$paged = (get_query_var('paged')) ? get_query_var('paged') : 1;

query_posts('showposts=' . $limit . '&paged=' . $paged .'&cat=-28');

$wp_query->is_archive = true; $wp_query->is_home = false;

}

?>

 

<?php while (have_posts()) : the_post(); ?>

 

 

 

<div <?php post_class(); ?> id="post-<?php the_ID(); ?>">

 

<div class="left">

 

<div class="thumb" style="background: url(<?php bloginfo('url'); ?>/<?php echo get_post_meta(get_the_ID(), '_video_thumbnail_small',true)?>) no-repeat 50% 50%;" alt="<?php the_title_attribute('echo=1'); ?>">

 

<a href="<?php the_permalink() ?>" rel="bookmark" title="Read summary and watch <?php the_title_attribute('echo=1'); ?>"><div></div></a>

 

</div>

 

<div style="display:inline;">

 

<span class="left watch-btn"><a href="<?php the_permalink() ?>" rel="bookmark" title="Watch <?php the_title_attribute('echo=1'); ?> online streaming for free"><img src="<?php bloginfo('stylesheet_directory'); ?>/images/watch-btn.gif" alt="watch" /></a></span>

 

<span class="left ratings"><?php if(function_exists('the_ratings')) { the_ratings(); } ?></span>

 

</div>

 

</div>

 

<div class="right">

 

<div class="part1">

 

<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Watch <?php the_title_attribute('echo=1'); ?> online"><?php the_title(); ?></a></h2>

 

<div class="entry"><?php the_excerpt(''); ?></div>

 

</div>

 

<div class="read-more"><a href="<?php the_permalink() ?>" rel="bookmark" title="Read summary and watch <?php the_title_attribute('echo=1'); ?>">read more...</a></div>

 

<div class="postmetadata"><?php comments_popup_link('Add Your Link', '1 Link', '% Links', '', 'Adding Links Closed' ); ?> | Category: <?php echo get_the_category_list(', ');?></div>

 

</div>

 

</div>

 

 

 

<?php endwhile; ?>

 

 

 

<div class="navigation">

 

<div class="alignleft"><?php previous_posts_link('<div class="pre"></div>') ?></div>

 

<?php if(function_exists('wp_pagenavi')){ wp_pagenavi(); } else { ?>

 

<?php } ?>

 

<div class="alignright"><?php next_posts_link('<div class="next"></div>') ?></div>

 

</div>

 

 

 

<?php else : ?>

 

 

 

<h2 class="center">Not Found</h2>

 

<p class="center">Sorry, but you are looking for something that isn’t here.</p>

 

 

 

<?php endif; ?>

 

 

 

</div>

 

 

 

<?php get_sidebar(); ?>

 

 

 

<?php get_footer(); ?>

Nuoroda į pranešimą
Dalintis kituose puslapiuose

Prisijunkite prie diskusijos

Jūs galite rašyti dabar, o registruotis vėliau. Jeigu turite paskyrą, prisijunkite dabar, kad rašytumėte iš savo paskyros.

Svečias
Parašykite atsakymą...

×   Įdėta kaip raiškusis tekstas.   Atkurti formatavimą

  Only 75 emoji are allowed.

×   Nuorodos turinys įdėtas automatiškai.   Rodyti kaip įprastą nuorodą

×   Jūsų anksčiau įrašytas turinys buvo atkurtas.   Išvalyti redaktorių

×   You cannot paste images directly. Upload or insert images from URL.

Įkraunama...
  • Dabar naršo   0 narių

    Nei vienas registruotas narys šiuo metu nežiūri šio puslapio.

  • Prisijunk prie bendruomenės dabar!

    Uždarbis.lt nariai domisi verslo, IT ir asmeninio tobulėjimo temomis, kartu sprendžia problemas, dalinasi žiniomis ir idėjomis, sutinka būsimus verslo partnerius ir dalyvauja gyvuose susitikimuose.

    Užsiregistruok dabar ir galėsi:

    ✔️ Dalyvauti diskusijose;

    ✔️ Kurti naujas temas;

    ✔️ Rašyti atsakymus;

    ✔️ Vertinti kitų žmonių pranešimus;

    ✔️ Susisiekti su bet kuriuo nariu asmeniškai;

    ✔️ Naudotis tamsia dizaino versija;

    ir dar daugiau.

    Registracija trunka ~30 sek. ir yra visiškai nemokama.

  • Naujausios temos

  • Karštos temos

×
×
  • Pasirinkite naujai kuriamo turinio tipą...