• Hi!
    I need some specific solution that is available for other (advanced) CMS tool which I have troubles installing it so far 🙂

    I need option to list categories mixed with post on index.php page.

    It means some tool to create link to category in another one or something like that.

    Is there any plugin / hack / function allowing such thing?

    Thank you.

    Kriss.

Viewing 6 replies - 1 through 6 (of 6 total)
  • WordPress used as CMS is nothing to sneeze at, if I may say so myself 🙂

    I need option to list categories mixed with post on index.php page

    Not clear, do you want to be able to place a category with its list of posts on the home page?

    It means some tool to create link to category in another one or something like that.

    You want to create link to category to another one … a page with list of posts/articles from that category?

    Maybe these links will help you, if not let us know
    http://codex.wordpress.org/User:JamesVL/query_posts
    http://codex.wordpress.org/Category_Templates
    http://www.dagondesign.com/articles/latest-post-from-each-category-plugin-for-wordpress/
    http://www.dagondesign.com/articles/archives-by-selected-categories-plugin-for-wordpress/

    Thread Starter Chris Kepinski

    (@phpworker)

    Thank you for quick reply. I’ll try to be more clear: I need a tool that would allow me to list links to categories inside another category. These links would be mixed up with posts (some ordering would be a must).

    Is there any concept for realizing such functionality?

    Sure there is – wp_list_category along with some other techniques plus some CSS for subcategories
    Some links to help you …
    Codex wp_list_category
    Some other links re subcategories listing with parent categories
    http://wordpress.org/support/topic/206191?replies=8
    http://wordpress.org/support/topic/214586?replies=16
    http://yoast.com/showing-subcategories-on-wordpress-category-pages/
    http://www.w3cgallery.com/w3c-blog/wordpress-hack/wordpress-display-sub-categories-of-category

    You just add the links of the specific Posts or Pages where you want them, preferably before or after the wp_list_categories

    Thread Starter Chris Kepinski

    (@phpworker)

    Maybe I provide some example of what I need…

    Let’s assume that the following is content of example category. What we have inside? Let’s see:

    post #1
    post#2
    category#44
    post#6
    post#4
    category#2
    category#26
    post#3

    Maybe now you see what I mean 🙂 Categories listed above are in fact just links to them. There is no such functionality in WordPress admin, nor in plugins (google not found yet).

    Any idea where to start?

    You’d either have to create a plugin/functional arguments to generate that list automatically per selection in admin via generated new admin panel for that OR ..

    1. hardcode the links in your theme template or add a new php file in your theme folder e.g. mycats.php with all the HTML/CSS tags you need and update manually. Include wherever you like in your theme via
    <?php include( TEMPLATEPATH . '/mycats.php' ); ?>

    2. Or, to make it easy for a non-tech person, add New Page e.g. Mycats – exclude it from main navigation by exclude argument in wp_list_pages or using Exclude Pages from Navigation Plugin and include it in theme with wp_query_function

    <?php $the_query = new WP_Query('pagename=mycats');
    while ($the_query->have_posts()) : $the_query->the_post(); ?>
    <h3 class="infoclass"><?php the_title(); ?></h3>
    <?php the_content(); ?>
    <?php endwhile; ?>

    So any link list you add in the mycats Page will appear wherever you added the query in the templates

    Thread Starter Chris Kepinski

    (@phpworker)

    Thank you for you answer.

    Seems there is a need for a plugin that would allow me to create links to categories within another category. Next it should allow to show such links on category page.

    Let’s look deeper…
    There is column post_type in wp_posts, which I could use to identify a “category-link” type. By creating my own WP Query and some php code I could define some specific conditions of showing that category-link (link to category, not to post, etc.).

    And such “category-link” post should have custom_field that has category ID which it links to.

    OK, seems we found a solution 🙂

    Thanks again and have a nice week!

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

The topic ‘Mixing Categories with Posts’ is closed to new replies.