Morocco English
Forum Replies Created
-
the theme called : Noteworthy .
Here is where I am working on the theme :
https://www.nadorpixel.com/english/you will see the “certain cat section I added “
it’s with red color background …I have fixed this problem
ok now the new div displays an post thumbail and a title
ok so far ??
but the image size changed ! in the browser source code, found :
<img class="attachment-250x250 wp-post-image" height="236" width="125" alt="pic_intro" src="..../wp-content/uploads/2012/12/pic_intro.png">
height=”236″ width=”125 ??? where this comes from ?
thanks
I found that :
” Post Tumbnails are given a class “wp-post-image”. “I will try to apply this on my theme …
I got another question hope I didn’t disturb you :
Can I display certain posts on the sidebar without using widgets ?what about if I wanna style the post image …where can I add a class or id for it inside the code ??
the title code of my current posts … might be this :
I copied from index.php<header> <h2 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'noteworthy' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php if(the_title( '', '', false ) !='') the_title(); else _e( 'View Post', 'noteworthy' ); ?></a></h2> </header>
and this sounds to be the code of the post image
<?php if ( has_post_thumbnail()) : ?> <a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title_attribute(); ?>"><?php echo the_post_thumbnail( array( 250, 250) ); ?></a> <?php else : ?> <?php $postimgs =& get_children( array( 'post_parent' => $post->ID, 'post_type' => 'attachment', 'post_mime_type' => 'image', 'orderby' => 'menu_order', 'order' => 'ASC' ) ); if ( !empty($postimgs) ) : $firstimg = array_shift( $postimgs ); $my_image = wp_get_attachment_image( $firstimg->ID, array( 250, 250 ) ); ?> <a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title_attribute(); ?>"><?php echo $my_image; ?></a> <?php endif; ?> <?php endif; ?>
so I need to change that line with the block content inlcuding the post title,authorname,date,image,category name … ??
I added the code ,
still nothing displayed in the div …Forum: Themes and Templates
In reply to: How to classify posts according their category on home page ?thanks friend
so how to style this category in css … ?by adding :
#featured-latest{ ???Forum: Themes and Templates
In reply to: Single.php failureAlmost I have the same problem…
I created different single.php files to have different styles pf post categories on home ^page … but I just worked with the category page not on the home .
Forum: Themes and Templates
In reply to: This is the Result I want … Appreciate ur helpthanks
I guess it has to do with single.php files …
creating different single.php files …
tried it but it worked with the category page not the category section in the home page …