Sivar
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Dynamic menu that moves horizontaly as the user scrolls the pageYou could try using fixed positioning of your menu’s div using css:
div.menu { position: fixed; top: 10px; left: 10px; }
This is just an example, but should place the menu-div always in the top left corner of the browser window. Adjust that example to your needs.
Forum: Fixing WordPress
In reply to: blank space between header & pageh2 { margin: 30px 0 0; }
I think, this is causing your whitespace… but if I were you, I’d keep it ;).
Forum: Fixing WordPress
In reply to: Check category-ID of a commentNever mind, some genius I know solved my problem ;).
Forum: Fixing WordPress
In reply to: how to make sidebar list have equal spacing in IE and FFThe widgets use correct listing, but not the sidebar itself. Open your sidebar.php and see, if there are ul-tags “around” the lines where it says
"if (function_exists [...] endif;"
.If not, place them. Example:
<div id="sidebar-l">
<ul>
<?php if ( function_exists('dynamic_sidebar') && dynamic_sidebar(1) ) : else : ?> <?php endif; ?>
</ul>
</div>
Forum: Fixing WordPress
In reply to: Recent Posts CodeSome hourly rate… you have a deal! ??
Forum: Fixing WordPress
In reply to: Recent Posts Code*lol*
I’m glad I could help :). Do you want to pay on credit or cash? *gg*
Forum: Fixing WordPress
In reply to: Recent Posts CodeOk, one last thing before I give up…
Delete:
<?php $myquery = $wp_query; ?>
(or the modified one with clone)
and…
<?php $wp_query = $myquery; ?>
(or the modified one)Replace:
<?php query_posts('cat=5&showposts=5'); ?>
with…
<?php $myquery = new WP_Query('cat=5&showposts=5'); ?>
and…
<?php while (have_posts()) : the_post() ?>
with…
<?php while($myquery->have_posts()) : $myquery->the_post(); ?>
But I have no idea, if the loop shows the correct titles/links, regardless of what else is currently displayed on your page.
Forum: Fixing WordPress
In reply to: Recent Posts CodeOk, delete the
rewind_posts()
line. Then modify:<?php $myquery = $wp_query; ?>
to -><?php $myquery = clone $wp_query; ?>
and
<?php $wp_query = $myquery; ?>
to -><?php $wp_query = clone $myquery; ?>
Now pray, that it works with wordpress 2.2! ??
Forum: Fixing WordPress
In reply to: Recent Posts CodeIn the end, immediately after ′<?php $wp_query = $myquery; ?>` try inserting the following line:
<?php rewind_posts() ?>
Forum: Fixing WordPress
In reply to: Recent Posts CodeSeems fine to me. If you delete the whole thing (the code you just posted), does the rest of your page work as it should?
I’m using something very similar on my page, and it doesn’t give me any problems. Maybe someone else has an idea?
Oh, and please use the backticks (“code”-button) for code you post (explanation below the text area) :).
Forum: Fixing WordPress
In reply to: Recent Posts CodeThat’s odd… and shouldn’t be. Are you sure, you didn’t forget this line before our
"while..."
…
<?php $myquery = $wp_query; ?>
…and this one below our"endwhile"
…?
<?php $wp_query = $myquery; ?>
If they are both there, I don’t think this loop has something to do with the not appearing post on your main page.
Forum: Fixing WordPress
In reply to: Recent Posts CodeGreat, so far :).
Well, look at the line with
query_posts
… see the"cat=5"
in there as an option? That means, that only posts from category 5 (= reviews?) are being displayed. If you want to include other categories to the query (let’s say, category 1), you would modify your query_posts like this:query_posts('cat=1,5&showposts=5');
Now it says: “Ask for the 5 latest posts from categories 1 and 5.”
You can add as many categories as you like. Example:query_posts('cat=1,4,5,10,12&showposts=5');
Forum: Fixing WordPress
In reply to: Recent Posts CodeOk, try something else as content of your loop. Content means, between:
<?php while (have_posts()) : the_post() ?>
and
<?php endwhile; ?>
Here’s the content:
<li><a href="<?php the_permalink() ?>" title="<?php _e('Permanent link to'); ?> <?php the_title(); ?>"><?php the_title() ?></a></li>
Forum: Fixing WordPress
In reply to: Recent Posts CodeDelete the following line:
<?php while (have_posts()) : the_post(); // watch the semicolon at the end of the line, I forgot that before! ?>
You got that"while..."
twice, when you copy-pasted my loop example.After that, see if the error message still shows up. If it does, there must be some
"endif;"
where it does not belong (I would guess, below the code you posted). Try commenting that out, unless it belongs to another loop, which starts with"if (have_posts())"
.Good luck! ??
Forum: Fixing WordPress
In reply to: WordPress and the wrath of the <p>And again, why would you want to put divs in there? Just for your sense of aesthetics and because you hate p-tags, or is there some reason why you really need it? If the latter, maybe there’s another workaround, which would not require a div.