Tag Info

Hot answers tagged

1

There are a lot of questions here regarding pagination, it is definitely one of the least understood aspects of how WordPress works internally. To understand why you get 404s, we'll start by looking at the Action Reference in Codex to see the process WordPress follows for each request. The process begins by loading up the plugins and theme, and doing some ...


1

Between my phone and work some errors creeped in, sorry about that. here is my revised answer. Hope this helps in solving your problem. PROBLEM 1 You should not name your template 'archive-{$post_type}.php' if it is a page template. This totally goes against the template hierarchy for pages, and that is why your static frontpage doesn't work. From the ...


1

I figured it out! After a lot of research and trial and error, I managed to figure out how to get the paging to work for both versions...my original code and the simplified code update. Original Code Solution: <?php $cat = get_cat_ID("Photos"); $categories = get_categories("child_of=$cat"); $limit = 9; $total = count($categories); ...


1

EDIT - ANSWER REVISITED I've being working on another solution which is actually better the original answer. This does not involve any custom query and I think for all purposes my original answer can be dropped but kept for informational purposes I still believe you are on the homepage and will also treat this as such. So this is my new solution STEP 1 ...



Only top voted, non community-wiki answers of a minimum length are eligible