kz
Forum Replies Created
-
Forum: Themes and Templates
In reply to: 5 Latest Posts??1st, 3rd, 4th and 5th posts have really some images?
Make sure that all images are linked to a post.
I dont mean if there is image in the post on editor.
Pls check image list on admin panel/media library.Forum: Themes and Templates
In reply to: Line break, paragraph break????For example:
<div style="height: 20px; clear: both;border-bottom:1px solid #FF1CAE;"></div>Forum: Fixing WordPress
In reply to: post tags and flash contents showing with search resultsSome code like below work fine for you.
while(have_posts()) : the_post(); if(is_search()) : the_excerpt(); else : /* do stuff */ endif; endwhile;Or, Copy index.php and rename it search.php.
Then, Change main loop to this:while(have_posts()) : the_post(); the_excerpt(); endif; endwhile;Forum: Fixing WordPress
In reply to: Problem with imagesYour uploaded image is .tiff format.
Most browser can not show that image.
You must upload .png or .jpg or .gif.Forum: Themes and Templates
In reply to: Is it possible to put post title inside header image?query_posts('ports_per_page=1&category_name=FEATURED'); if(have_posts()) : the_post(); the_content('READ MORE'); endif; wp_reset_query();Forum: Themes and Templates
In reply to: sections still appear in sidebarDelete DIV sections, #sidebar-left and #sidebar-right.
Forum: Themes and Templates
In reply to: Line break, paragraph break????Change this:
<div style="height: 20px;"></div>
To this:
<div style="height: 20px; clear: both;"></div>Forum: Themes and Templates
In reply to: 5 Latest Posts??Mmm..
Below code will show all images attached to each post.query_posts('showposts=5'); // recent 5 posts while(have_posts()) : the_post(); ?><div class="my-post"><?php $images = get_children(array( 'post_parent' => get_the_id(), 'post_type' => 'attachment', 'post_mime_type' => 'image', 'orderby' => 'ID', 'order' => 'ASC', 'numberposts' => -1 /* get all attached images */ )); foreach($images as $id => $image){ echo wp_get_attachment_image($id, array(50/* width */,20 /* height */), false, array('class' => 'my-image')); // break; // if this loop breaks, only one image is shown } echo '<a href="' . get_permalink() . '">' . get_the_title() . '</a>'; ?></div><?php endwhile; wp_reset_query();style.css:
img.my-image{float:left;} div.my-post{padding:1em 0;}Forum: Themes and Templates
In reply to: Excerpt Height Issuestyle.css line 644
Change this:.bg { height:185px;To this:
.bg { height:300px;Forum: Themes and Templates
In reply to: 5 Latest Posts??$images = get_children(array( 'post_parent' => get_the_id(), 'post_type' => 'attachment', 'post_mime_type' => 'image', 'orderby' => 'ID', 'order' => 'ASC', 'numberposts' => -1 /* get all images */ )); foreach($images as $id => $image){ echo wp_get_attachment_image($id, array(50/* width */,20 /* height */), false, array('class' => 'my-image')); // break; // if this loop breaks, only one image is shown }style.css:
img.my-image{float:left;}Forum: Themes and Templates
In reply to: Archives Navigation Link Not Working in Depo Masthead ThemeChange this:
<a href="<?php bloginfo('url'); ?>/<?php echo mysql2date('Y', get_lastpostdate('blog')) ?>/"><?php _e('Archives', 'depo-masthead'); ?></a>
To this:
<a href="<?php echo get_year_link(mysql2date('Y', get_lastpostdate('blog'))); ?>/"><?php _e('Archives', 'depo-masthead'); ?></a>Of course, you must set ‘%postname%’ to [common options|custom structure].
Forum: Themes and Templates
In reply to: [Category] Pagination not working! Tried everything!Make more posts in category ‘print’.
Forum: Themes and Templates
In reply to: Do I need <?php wp_footer(); ?> ?WPSTATS output the smiley.
Add below rule into your style.css.
img#wpstats{display:none;}Forum: Fixing WordPress
In reply to: Get posts by userquery_posts('showposts=-1&author=123'); // for example, 123 as user ID. if(hace_posts()) : while(have_posts()) : the_post(); /* do stuff */ endwhile; endif; wp_reset_query();Forum: Themes and Templates
In reply to: Sidebars not workingfunctions.php
if ( function_exists('register_sidebar') ) register_sidebars(2, array( 'before_widget' => '<li id="%1$s" class="widget %2$s">', 'after_widget' => '</li>', 'before_title' => '', 'after_title' => '', ));For side bar #1:
<?php get_sidebar(1); ?>For side bar #2:
<?php get_sidebar(2); ?>