Joshua Sigar
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Rollover on header imageWell, you need to make the header clickable. Below is a sample markup.
<div id="header">
<h1><a href="http://mysite.com">My site</a></h1>
</div>
and the css…
h1 {
text-indent: -3000px; /* hide the text */
}
h1 a {
display: block;
height: 150px; /* the height of upper half img */
background: url(my-header.gif) no-repeat 0 0; border: none;
}
h1 a:hover {
background-position: 0 -150px /* shift the img upward to get lower half shown */
}
You just need to adjust that “+/- 150px” value
Forum: Installing WordPress
In reply to: List ALL POSTS by Authorquery_posts(‘cat=22&author=’ . $post->post_author . ‘&order=ASC&showposts=-1’);
Forum: Installing WordPress
In reply to: List ALL POSTS by AuthorLeave the existing Loop alone.
Go to sidebar portion (which should be after and outside the existing Loop) and add something like the following.
// query_posts(author=1…
// the Loop that output post title linkForum: Installing WordPress
In reply to: List ALL POSTS by Authora) You will need a Loop to display the query result. Consult the second link I posted.
b) Worry about it later; hardcode the id for now.Forum: Installing WordPress
In reply to: List ALL POSTS by AuthorYou’d just need a Loop that will retrieve and display Posts of certain author. The first link shows you how to retrieve based on certain criteria. The second link shows you how to set up another Loop
http://codex.wordpress.org/Template_Tags/query_posts
http://codex.wordpress.org/The_Loop#Multiple_LoopsForum: Fixing WordPress
In reply to: resetting query_posts for 2nd loop on same pageFor the second Loop, you may want to do the following.
<?php query_posts($query_string); ?>Forum: Alpha/Beta/RC
In reply to: Bunch of questions about 2.0I know this AJAX thing is very trendy and cool looking, but does it work with old browsers?
Everything will gracefully degrade and still work when a browser does not support AJAX.I really would have liked to see “Custom fields for users” and “A Complete User/Author Profile Page with his/her recent Posts or recent Actions.”
These parts have to be realized by plugin authors. WP already provides everything to make all those happen.Forum: Fixing WordPress
In reply to: List of 5 Most Recent Posts Within a Category$original_post = $post;
/* insert the whole code to get recent posts of same category */
$post = $original_post;
setup_postdata($post);
/* insert the code to get comments for currently-viewed post */Forum: Fixing WordPress
In reply to: List of 5 Most Recent Posts Within a CategoryMy apology for keep giving inaccurate answer. The following code has been tested. The code is to be put on the file
single.php, after and outside the main Loop.<?php
$cat = get_the_category();
$cat = $cat[0];
$posts = get_posts("category=" . $cat->cat_ID . "&numberposts=5");
if( $posts ) :
?>
<div class="recent-posts">
<h2>More on this category</h2>
<ul>
<?php foreach( $posts as $post ) : setup_postdata( $post ); ?>
<li><a href="<?php the_permalink() ?>" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></li>
<?php endforeach; ?>
</ul>
</div>
<?php endif; ?>Forum: Fixing WordPress
In reply to: List of 5 Most Recent Posts Within a CategoryMy bad. Replace
$idwith$cat
That way, you’ll get recent posts of whatever category the post you’re viewing.Forum: Fixing WordPress
In reply to: List of 5 Most Recent Posts Within a CategoryTry this.
<?php $posts = get_posts( "category=" . $id . "&numberposts=5″ ); ?>
<?php if( $posts ) : ?>
<div class="recent-posts">
<h2>More on this category</h2>
<ul>
<?php foreach( $posts as $post ) : setup_postdata( $post ); ?>
<li><a href="<?php the_permalink() ?>" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></li>
<?php endforeach; ?>
</ul>
</div>
<?php endif; ?>Forum: Fixing WordPress
In reply to: Help with conditional link code to display nameMake the following adjusment
echo 'Logout ' . $user_nickname . '<br />';Forum: Requests and Feedback
In reply to: WordPress 1.2 neededForum: Plugins
In reply to: Problem with several plugins that all use add_filter()Probably just need to set the priority for each plugin appropriately and making sure that the filtered content is returned.
The plugins’ author should know more concrete solution.
Forum: Fixing WordPress
In reply to: how to show summary instead of full entry?