iand
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Previous and Next postTry droping this in your index.php (or single.php if
<?php if (is_single() ) { ?>
<div class="nav">
<?php previous_post('« %', '') ?> | <a href="<?php bloginfo('url'); ?>">Home</a> | <?php next_post('% »', '') ?>
</div><!-- nav -->
<?php } ?>within the loop, just below
<?php if (have_posts()) : while....Forum: Themes and Templates
In reply to: Search Problems with Red Train ThemeIf you have neither archive.php or search.php, it will use index.php. If a page can find one which is listed in the template hierarchy, it will default to index.php.
Forum: Fixing WordPress
In reply to: Replace <p> in text areaI solved it already.
Would you mind describing how? for anyone else who finds this thread in the future.Forum: Fixing WordPress
In reply to: Decoding Password in phpAdminFor guide to the above, see here ( Through PHPMyAdmin):
http://codex.wordpress.org/Resetting_Your_PasswordForum: Installing WordPress
In reply to: Local install on personal machineYou don’t:
http://maczealots.com/tutorials/wordpress/
http://girtby.net/offerings/wordpress-osx-local-mirror
There is also MAMP if you need it:
http://www.mamp.info/Forum: Fixing WordPress
In reply to: Can’t get the posts_nav_link to appear with query_postsMaybe use get_posts instead?
<?php
$posts = get_posts('numberposts=4&offset=0&category=3');
foreach ($posts as $post) :
?>
Your loop contents here
<?php endforeach; ?>
<?php posts_nav_link('separator','prelabel','nextlabel'); ?>Forum: Fixing WordPress
In reply to: Can’t get the posts_nav_link to appear with query_postsI ran into this yesterday, from the codex page on query posts:
WordPress then ignores the other parameters it received via the URL (such as page number or category).
Adding&paged=1doesn’t seem to help.Forum: Plugins
In reply to: Category Limit PluginTry this link:
http://www.coppit.org/code/category-levels.php.txtForum: Fixing WordPress
In reply to: Display category for current post without hyperlink?<?php the_category_rss(); ?>
Template Tags is your friend :).Forum: Plugins
In reply to: Simple post page validationThe limit categories plugin?
http://www.redalt.com/downloads/
Not sure if it prevents posting to no categories though.Forum: Fixing WordPress
In reply to: Code for listing title of archives sections?You could try something like
<div class="something">Your are currently browsing the archive of <?php wp_title(); ?></div>in your archive.php file, where you want it to appear.Forum: Plugins
In reply to: subscribe meWith the plugin active, put
<?php sem_subscribe_me(); ?>wherever you want the output of the plugin to appear.Forum: Plugins
In reply to: asides and query_postsResult! http://photomatt.net/2004/05/19/asides/
As far as I can understand it it will combine multiple asides so
<ul class="linklog">
<li>aside 1</li>
</ul>
<ul class="linklog">
<li>aside 2</li>
</ul>
becomes
<ul class="linklog">
<li>aside 1</li>
<li>aside 2</li>
</ul>Who knows, someone might find this useful to know. Now to answer 1 and 2 myself aswell 🙂
Forum: Plugins
In reply to: asides and query_postsThanks, now I just have to figure out why that is useful 🙂
Forum: Plugins
In reply to: asides and query_postsAdding to the questions, does anyone know what the follow code (from adding asides page) actually does.
<?php
if ($posts)
{
function stupid_hack($str)
{
return preg_replace('|</ul>s*<ul class="linklog">|', '', $str);
}
ob_start('stupid_hack');
foreach($posts as $post)
{
start_wp();
?>
As far as I can tell the asides work without it. It must do something though.