Forum Replies Created

Viewing 15 replies - 31 through 45 (of 62 total)
  • Thread Starter ilmattiapascal

    (@ilmattiapascal)

    thanks alchymiyth it worked well, but it still has a problem. The featured image now it’s ok with all the post of the category except the first. That’s probably because we made together some months ago that trick that let me show a really big featured image for the first post of the home.
    So maybe the problem is on that wpquery–>current post !=0 ?

    i ve another short question for you; how and where i can change the fact that the category.php file takes information from content.php? i just would like to make another content.php file, called for example, content-cat.php and let the category.php take information from it.

    thanks again for your patience,

    Thread Starter ilmattiapascal

    (@ilmattiapascal)

    ah of course, the code isn’t the whole template, but i thought it was the most important part ?? and the menu is nothing else than the navigation bar.

    Thread Starter ilmattiapascal

    (@ilmattiapascal)

    <header class="entry-header">
    
    		<span class="category-title">
    		<?php foreach( get_the_category() as $category ) {
    		$category_name = $category->cat_name;
    		}
    		echo ' <a href="' . get_category_link( $category->term_id ) . '">' . $category_name . '</a> ';
    			?>
    		</span>
    
    			<?php if ( is_single() ) : ?>
    			<h1 class="entry-title"><?php the_title(); ?></h1>
    			<?php else : ?>
    			<h1 class="entry-title">
    				<a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'twentytwelve' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="bookmark"><?php the_title(); ?></a>
    			</h1>
    			<?php endif; // is_single() ?>
    
    		</header><!-- .entry-header -->
    
    		<?php if( is_home() && $wp_query->current_post != 0 || is_home() && is_paged() ) the_post_thumbnail(); ?>
    
    		<?php if ( is_search() || is_archive() || is_category() || is_tag() || is_home() ) : // display Excerpts ?>
    
    		<div class="entry-summary">
    			<?php the_excerpt(); ?>
    			<a href="<?php echo get_permalink(); ?>"> Read More...</a>
    		</div><!-- .entry-summary -->
    		<?php else : ?>
    		<div class="entry-content">
    			<?php the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'twentytwelve' ) ); ?>
    			<?php wp_link_pages( array( 'before' => '<div class="page-links">' . __( 'Pages:', 'twentytwelve' ), 'after' => '</div>' ) ); ?>
    		</div><!-- .entry-content -->
    		<?php endif; ?>
    
    			<footer class="entry-meta">
    
    			<?php
    				$date = sprintf( '<a href="%1$s" title="%2$s" rel="bookmark"><time class="entry-date" datetime="%3$s">%4$s</time></a>',
    					esc_url( get_permalink() ),
    					esc_attr( get_the_time() ),
    					esc_attr( get_the_date( 'c' ) ),
    					esc_html( get_the_date() )
    			);
    			echo $date ;?>
    
    				<?php if ( comments_open() ) : ?>
    
    					<?php comments_popup_link( '<span class="leave-reply">' . __( 'Leave a reply', 'twentytwelve' ) . '</span>', __( '1 Reply', 'twentytwelve' ), __( '% Replies', 'twentytwelve' ) ); ?>
    
    			<?php endif; // comments_open() ?>
    			</footer>

    this is the content.php code

    i modified the position of some stuff, and first of all, thanks to you alchymyth, i was able to place a big image for the first post of the main page. (the query string)

    the home page has a big image as featured image only for the first post, for the others has simply the featured image smaller.

    from the menu you can access to different links which are categories. For example i ve a category called illustrations. From the menu i click illustrations and i will find a page with all the illustration category posts. The problem is that the list of posts doesn’t have the featured image. I don’t even want this to be like the main page with the big image for the first post; i only need a simple post list with featured images for each post.

    Thread Starter ilmattiapascal

    (@ilmattiapascal)

    yes, but i want to have the featured image of the posts also in the category page like in the main page. My cateogry page shows only the post title with excerpt, but not the featured image, and i really don’t know what and where i should work.

    Thread Starter ilmattiapascal

    (@ilmattiapascal)

    Somehow i done it,

    i just changed in the WP_CPL_OUTPUT_GEN.php file the $cat_id on line 12
    with $rand_posts

    after that you change the widget title and u got it.

    he’s gone ?? i would also like to know it ??

    Thread Starter ilmattiapascal

    (@ilmattiapascal)

    sorry for the late answer, and sorry for the important info that i forgot to put inside my question;

    i’m making a child theme of twenty twelve. It’s really a catchy situation, i don’t find any Archive plugin that do this. I’m afraid i ve to learn how to make widget to achieve my purpose…is there any widget that can bring me nearer to the solution ?

    thanks

    Thread Starter ilmattiapascal

    (@ilmattiapascal)

    Resolved.

    Thread Starter ilmattiapascal

    (@ilmattiapascal)

    Alchy it worked like a charm!

    i really didn’t understand so much about your code, i don’t really know anything about query stuff, but it has worked, and thank you!

    little by little my young frankenstein child theme of 2012 is growing and take the shape that i want, i’ve got only a few widgets to stylize, and then it’s ok. Thank you!

    Thread Starter ilmattiapascal

    (@ilmattiapascal)

    ok alchy, i ll try it thanks!

    Xavier, i can’t say the URL because i m working in local ??

    i would like to give you a URL but sadly i m working in a localhost, soon i ll publish the site, but i m still building..:( maybe if u need some specific templates of mine, i can give u without problems.

    normally i put <?php echo sharing_display(); ?> in my content.php .
    it works well because it is exactly where i want (at the bottom of the article, under the post date and leave a comment.
    the problem is that the default ketpack plugin is above the date+leave a comment.

    i could change it with dreamweaver but then i m afraid to have problem with some position elements..

    hey jeremy, thank you for your work with the small plugin; i tested it but nothing changed…i work with win 7, i m making a child (or better, a young frankenstein) theme of 2012, i ve got no other plugin installed than your nearly perfect jetpack.

    I tried others plugin with share stuff, but i would prefer your. If you could solve this problem, it would be really perfect.

    Thread Starter ilmattiapascal

    (@ilmattiapascal)

    anybody has a solution for this god forsaken user with a small bunch of css knowledge in the pocket, and only devil and dust of php ? ??

    the echo stuff works perfectly…but now i ve got two identical share areas.

    I pasted the remove recipe in function.php but it doesn’t work..

Viewing 15 replies - 31 through 45 (of 62 total)