WordPress Tips
Einige interessante Tips für WordPress hat Jacob Goldman für das smashing Magazine zusammengestellt.
Die meisten Tips drehen sich um Anpassungen im Backend, aber es wird auch z.B. paginate_links() erklärt.
Einige interessante Tips für WordPress hat Jacob Goldman für das smashing Magazine zusammengestellt.
Die meisten Tips drehen sich um Anpassungen im Backend, aber es wird auch z.B. paginate_links() erklärt.
Eine etwas andere Pagination Lösung mit MooTools.
The problem with that implementation usually is that you don’t want to go to any other page than the “next” or “previous” one. Especially with search results: looking at page 5 or 6 when you haven’t seen pages 2-4 doesn’t make any sense as the search results most probably are even less what you are searching for. This also applies to digg or to any blog, unless you are specifically searching for a page because you >know< where you will find a specific entry.
A Better Pagination löst das beschriebene Problem meiner Meinung nach zwar nicht aber es sieht zumindest gut aus.
Jean-Baptiste Jung stellt im smashing Magazine 10 WordPress Hacks vor. Und wie immer findet man etwas neues und oder nützliches. Z.B. Automatically Get Images on Post Content oder Using CSS Sliding Doors in WordPress Navigaton.
Ein Tip von StylizedWeb:
As the title says when you are using a query_posts() to exclude, include categories or what ever you want pagination dosen’t work it shows same posts on every page (This is for all pages that use query_posts not just index, so it’s for templates etc…) (…) How to fix it? To get proper pagination with query_posts() we need to recreate it through the ‘paged’ parameter or query. Best way to do this is to ask WordPress for the “page” we happen to be on, and use that as our ‘paged’ value. There’s the code for it
<?php if (have_posts()) : ?>
<?php query_posts("category_name=somecat"); ?>
<?php while (have_posts()) : the_post(); ?>
replace with
<?php if (have_posts()) : ?>
<?php $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; query_posts("category_name=somecat&paged=$paged"); ?>
<?php while (have_posts()) : the_post(); ?>
Ronald Huereca beantwortet die WordPress Frage:
How does one use paging with an offset? Doing so breaks the navigation controls.
Die Antwort ist der post_limits Filter. Praktisch, dieses Problem hat mich schon mal Stunden gekostet und führte zu einem wirklich hässlichen Workaround
.
Copyright © 2004–2009. All rights reserved. – Impressum
RSS Feed. This blog is proudly powered by Wordpress and uses Modern Clix, a theme by Rodrigo Galindez.