Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS I need a genius or wizard, Anyone? Re: I need a genius or wizard, Anyone?

#102096
Jon_N
Participant

@Senff
Here it is, I appreciate you helping me, I’m totally a newbie.



max_num_pages > 1 ) : ?>




/* Start the Loop.
*
* In Twenty Ten we use the same loop in multiple contexts.
* It is broken into three main parts: when we're displaying
* posts that are in the gallery category, when we're displaying
* posts in the asides category, and finally all other posts.
*
* Additionally, we sometimes check for whether we are on an
* archive page, a search page, etc., allowing for small differences
* in the loop on each template without actually duplicating
* the rest of the loop that is shared.
*
* Without further ado, the loop:
*/ ?>

ID ) ) || in_category( _x( 'gallery', 'gallery category slug', 'twentyten' ) ) ) : ?>

>

" title="" rel="bookmark">




$images = get_children( array( 'post_parent' => $post->ID, 'post_type' => 'attachment', 'post_mime_type' => 'image', 'orderby' => 'menu_order', 'order' => 'ASC', 'numberposts' => 999 ) );
if ( $images ) :
$total_images = count( $images );
$image = array_shift( $images );
$image_img_tag = wp_get_attachment_image( $image->ID, 'thumbnail' );
?>

%2$s photo.', 'This gallery contains %2$s photos.', $total_images, 'twentyten' ),
'href="' . get_permalink() . '" title="' . sprintf( esc_attr__( 'Permalink to %s', 'twentyten' ), the_title_attribute( 'echo=0' ) ) . '" rel="bookmark"',
number_format_i18n( $total_images )
); ?>



ID ) ) : ?>
" title="">
|

" title="">
|


| ', '' ); ?>

ID ) ) || in_category( _x( 'asides', 'asides category slug', 'twentyten' ) ) ) : ?>

>


→', 'twentyten' ) ); ?>



|

| ', '' ); ?>

>

" title="" rel="bookmark">


→', 'twentyten' ) ); ?>
'

' ) ); ?>




Posted in
%2$s', 'twentyten' ), 'entry-utility-prep entry-utility-prep-cat-links', get_the_category_list( ', ' ) ); ?>

|

$tags_list = get_the_tag_list( '', ', ' );
if ( $tags_list ):
?>

Tagged
%2$s', 'twentyten' ), 'entry-utility-prep entry-utility-prep-tag-links', $tags_list ); ?>

|


| ', '' ); ?>