kz
Forum Replies Created
-
Forum: Themes and Templates
In reply to: Define and recall Page IDget_post_meta($cinemaNew, 'poster_150', true)Forum: Themes and Templates
In reply to: Get ‘Alternate Text’ from attachments$alt = get_post_meta($attachment_id, '_wp_attachment_image_alt', true); if(count($alt)) echo $alt;if(in_category('Blog')) : // specify category-id or -slug or -name /* output the_time, the_author, the_tags, the_comments */ else : /* output Title & content */ endif;Forum: Themes and Templates
In reply to: Define and recall Page ID<?php $cinemaNew = 95; $mvdocsNew = 139; $sidesNew = 152; ?>Forum: Themes and Templates
In reply to: Make foot go across entire page instead of c1your get_footer() maybe included in ‘c1’ div block.
<div id="c1"> : get_footer(); </div><!--c1//-->Put get_footer() after ‘c1’ div block.
<div id="c1"> : </div><!--c1//--> get_footer();Forum: Themes and Templates
In reply to: Make foot go across entire page instead of c1Maybe:
<div id="footer"> /* write your code here */ <?php bloginfo('name'); ?> is powered by WordPress using theme Renegade<?php wp_footer(); ?> </div> </body> </html>Forum: Themes and Templates
In reply to: how to remove this block from posts?style.css line 1184:
.PostMetadataHeader {
background-color:#E3E3D9;
border:1px solid #CCCCB8;
padding:3px;
display:none; /* add this */
}or
remove from
<div class="PostMetadataHeader">to its closing tag</div>in your index.php.Forum: Themes and Templates
In reply to: Posts in three columnsSomething like this should work for you:
<table cellpadding="10" cellspacing="10" border="0"> <?php $col = $row = 0; $rows_per_column = 3; $rows = array(); while (have_posts()) : the_post(); if($row >= $rows_per_column){ $row = 0; $col++; } $rows[$row++] .= ' <td class="column' . $col . '" style="vertical-align: top"> <div class="post" id="post-' . get_the_id() . '"> <h1><a href="' . get_permalink() . '" rel="bookmark" title="' . get_the_title() . '">' . get_the_title() . '</a></h1> <div class="descr">' . get_the_time('l, F jS Y, G:i a T') . '</div> <div class="entry"> ' . get_the_content('Read the rest of this entry »') . ' </div> </div> <td>'; endwhile; echo '<tr>' . implode('</tr><tr>', $rows) . '</tr>'; ?> </table>Forum: Fixing WordPress
In reply to: How to addd conditional pagination links on comments?Better code:
<?php if(get_comments_number() > get_option('comments_per_page')) : ?> <ul> <li>More comments:</li> <li><?php paginate_comments_links(); ?></li> </ul> <?php endif; ?>Forum: Fixing WordPress
In reply to: How to addd conditional pagination links on comments?<?php if(get_comments_number() > 10/* comments per page */) : ?> <ul> <li>More comments:</li> <li><?php paginate_comments_links(); ?></li> </ul> <?php endif; ?>Forum: Fixing WordPress
In reply to: Next Post/Previous Post Problemnext_posts_link and previous_posts_link will work fine with label.
<div class="alignleft"><?php next_posts_link('« Older Articles') ?></div> <div class="alignright"><?php previous_posts_link('Newer Articles »') ?></div>Forum: Fixing WordPress
In reply to: Comment link does not workYour links of title and comments on that page indicate
http://theponyxpress.com/http:/theponyxpress.com/…Please show your code that output these bad links in index.php.
Forum: Fixing WordPress
In reply to: Code for pagination query_post not workIs there other loop with query_posts in sidebarx.php?
You must write wp_reset_query() to close query_post().Forum: Fixing WordPress
In reply to: Code for pagination query_post not workUse
<?php query_posts('cat=5&showposts=5&paged=' . $paged); ?>
or
<?php query_posts("cat=5&showposts=5&paged=$paged"); ?>Forum: Themes and Templates
In reply to: Sticky posts not “sticking” when using query_posts()$sticky = get_option('sticky_posts'); query_posts(array( 'post__in' => $sticky, 'category_name' => 'news' )); /* The loop for sticky here. */ query_posts(array( 'post__not_in' => $sticky; 'category_name' => 'news' )); /* The loop for news category without sticky here. */ wp_reset_query();