WordPress.org

Ready to get started?Download WordPress

Forums

Homepage Slider -Where is Post Get or Category Get Code?- (1 post)

  1. AnneHijme
    Member
    Posted 1 year ago #

    Alright, first The website is http://www.charlesbenz.com
    Using the InVogue Theme (which seems to no longer exist)
    I am not the owner of site, but was hired to assist him and am an admin user on his site.

    The slider on it no longer works. It seemed to happen when a category was deleted. I remade the catergory-however we believe it's slug name was different for the slider still doesn't work.

    I've been searching through the different template source code mainly the Home Page Template, and found Slider code more or less but not how it choose or gets the post. I have not seem a get.cat code or anything like that.

    <div id="flowpanes" class="section home-top clearfix">
    
    	<div class="items">
    
    		<?php $featured_query = new WP_Query('showposts='.$fnumber.'&cat='.$featured); ?>
    		<?php while ($featured_query->have_posts()) : $featured_query->the_post(); ?>
    
    			<div class="front-posts">
    				<div class="featured-image">
    					<?php
    					$attachments = get_children( array(
    					'post_parent'    => get_the_ID(),
    					'post_type'      => 'attachment',
    					'numberposts'    => -1, // show all -1
    					'post_status'    => 'inherit',
    					'post_mime_type' => 'image',
    					'order'          => 'ASC',
    					'orderby'        => 'menu_order ASC'
    					) );
    					foreach ( $attachments as $attachment_id => $attachment ) { ?>
    					<div>
    						<a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title_attribute(); ?>"><?php echo wp_get_attachment_image( $attachment_id,array(600,340) ); ?></a>
    					</div>
    					<?php } ?>
    				</div>
    
    				<div class="featured-post">
    					<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a><?php edit_post_link('Edit',' / ',''); ?></h2>
    					<p class="snippet"><?php excerpt('80'); ?> 	<a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title_attribute(); ?>">[ read more ]</a></p>
    
    					<!-- <div class="tabs-container clearfix">
    						<p>Viewing ยป</p>
    						<div class="tabs">
    							<?php /*
    							$attachments = get_children( array(
    							'post_parent'    => get_the_ID(),
    							'post_type'      => 'attachment',
    							'numberposts'    => -1, // show all -1
    							'post_status'    => 'inherit',
    							'post_mime_type' => 'image',
    							'order'          => 'ASC',
    							'orderby'        => 'menu_order ASC'
    							) );
    							foreach ( $attachments as $attachment_id => $attachment ) { */?>
    								<a href="#"></a>
    							<?php /* } */?>
    						</div>
    					</div> -->
    				</div><!-- f post -->
    
    			</div><!-- fp ends -->
    
    		<?php endwhile; ?>
    
    	</div><!-- items ends -->
    
    </div><!-- flowpanes ends -->

    So if anyone has ideas where to look or codes to look for I be glad for the assistance.

Topic Closed

This topic has been closed to new replies.

About this Topic