zudoku
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Tag archive from a single category – Is this possible?I’m using WP as CMS for Intranet project.
I need to make a sub-category belong to multiple parents so that when I’m in the sub-category page, I can show content from its various parents. (Imagine a Policy page can show content from various department, and a department can show various relevant sub-categories including policy). The complexity comes when I want to include and exclude some of the categories when querying.So one hack that I do is instead using category as parents, I use tag as the “parent category” so that I can do
query_posts('cat=1,2,3,4&tag=Parent+Parent&showposts=-1');
In this way I can do some filter and controlling over the post to be displayed.
Forum: Fixing WordPress
In reply to: Page not found using “posts_nav_link” within the loop in WP PagesJust want to add that the issue comes from this section ” Making your blog appear in a non-root folder”
I have WordPress running at https://example.com/wp. Suppose further that you want your blog to be located at https://example.com/wp/blog/ and that you want other pages to be available at https://example.com/wp/page1/
Thus I use the same code recommended
‘
<?php
/*
Template Name: Blog
*/
?><?php query_posts(‘cat=-0’); //gets all posts
load_template( TEMPLATEPATH . ‘/index.php’); //loads index
?>
‘But the navigation for previous/next page defined in my index template is not working. Thus, I wonder if the code recommended wrong?
Forum: Fixing WordPress
In reply to: Page not found using “posts_nav_link” within the loop in WP PagesHi moshu,
I stuck to that problem earlier – but I manage to solve it using this method‘<?php query_posts(‘cat=-0’); //gets all posts
load_template( TEMPLATEPATH . ‘/weblog.php’); //loads index
?>’I’m curious to know if there’s a way/plugin to have paginated wordpress Page.
The reason is because I’d like to use WordPress as CMS – I’d like to manage all my site structure (index, weblog, portfolio, contact) via wordpress.
Thanks!