Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • 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.

    Thread Starter zudoku

    (@zudoku)

    Just 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?

    Thread Starter zudoku

    (@zudoku)

    Hi 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!

Viewing 3 replies - 1 through 3 (of 3 total)