WordPress.org

Forums

The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

carousel+slide et post_type??? (2 posts)

  1. lupi73
    Blocked
    Posted 5 years ago #

    Hello,

    in a theme, I have this code

    <div class="carousel">
    	<div class="carousel_wrap">
    		<div id="slider">
    			<div class="nav_car">
    				<ul class="ui-tabs-nav">
    					<?php $index_query = new WP_Query('post_type=our_works&showposts=4'); ?>
    					<?php $i = 1 ?>
    					<?php while ($index_query->have_posts()) : $index_query->the_post(); ?>
    					<li class="ui-tabs-nav-item" id="nav-fragment-<?php echo $i ?>">
    						<div class="car_tab_wrap">
    							<div class="car_img"><a href="#fragment-<?php echo $i ?>">
    								<?php
        $w = get_option('thumbnail_size_w') - 55;
        $h = get_option('thumbnail_size_h') - 55;
    
        the_post_thumbnail(array($w, $h));
    	?>
    								</a></div>
    							<div class="car_title"><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>">
    								<?php the_title(); ?>
    								</a></div>
    							<div class="car_more"><a href="<?php the_permalink(); ?>" title="More about <?php the_title(); ?>">More</a></div>
    						</div>
    					</li>
    					<?php $i ++ ?>
    					<?php endwhile; ?>
    				</ul>
    			</div>
    			<div class="fragments">
    				<?php $index_query = new WP_Query('post_type=our_works&showposts=4'); ?>
    				<?php $i = 1 ?>
    				<?php while ($index_query->have_posts()) : $index_query->the_post(); ?>
    				<div id="fragment-<?php echo $i ?>" class="ui-tabs-panel">
    					<div class="fragment_img"><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>">
    						<?php the_post_thumbnail('full'); ?>
    						</a></div>

    how to configure it?
    thank you

  2. lupi73
    Blocked
    Posted 5 years ago #

    please,
    nothing happens without your help, can not use this theme!
    thank you in advance to whoever will help me.
    thank you !!

Topic Closed

This topic has been closed to new replies.

About this Topic