Skip to:
Content
Pages
Categories
Search
Top
Bottom

[Resolved] Page structure redirect to the page

  • Avatar of jishi
    jishi
    Participant

    @jishi

    [i'm sorry, previous topic is broken - i can not open it]

    I’d like to develop a directory, which uses my site category structure, using either a page template, or a kind of BP Skeleton template.

    The directory shall have URLs like /page/parentcat/cat/ , /page/parentcat/ , etc (200+ categories).
    I can not set up a redirect from /page/parentcat/cat/ to /page/ with mod_rewrite without loosing the URL structure, otherwise I won’t get the category slug.

    If there’s a way to make a redirect like that, or I’d better use some skeleton to complete the task? If the second option is preferrable – what’s worth reading about it?

    I’ve got WP 332 and BP 156, using classic WP .htaccess for permalinks.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Avatar of @mercime
    @mercime
    Keymaster

    @mercime

    == I’d like to develop a directory, which uses my site category structure, ==

    @jishi this is more of a WordPress issue rather than a BP one. Create a Page Template and replace the_content with wp_list_categories or just search for and use one of the list categories plugin to generate what you want in the Page http://wordpress.org/extend/plugins/tags/categories

    Avatar of jishi
    jishi
    Participant

    @jishi

    @mercime, thanks for the reply, but the cat list is not the issue.

    Here’s the beginning of the story: I have a common WP structure with 200+ categories, which are used for regular WP posts. I want to have additional functionality (like custom post type), but without cloning that tree – using the same cat structure.

    So URL for a post in WP look like /parentcat/subcat/
    And that additional “post type” URL shall be like /page/parentcat/subcat/
    I would parse the URL and show the content for that subcat.

    But when you try to get non-existent URL (I don’t want to recreate the whole tree, it’s really big), you get 404.

    What can I use to make that /page/ template work, not 404 template?

    Avatar of @mercime
    @mercime
    Keymaster

    @mercime

    @jishi and custom post types looks like the way to go for your project. BP is not involved at this juncture so at this point I suggest that you post this at http://wordpress.org/support/forum/how-to-and-troubleshooting and do include the information you just posted so all’s clear with the volunteers.

    Avatar of jishi
    jishi
    Participant

    @jishi

    @mercime On WP support I found a post by Otto, and he says the issue can be easily resolved.
    http://wordpress.org/support/topic/using-an-extra-parameter-in-an-url?replies=11

    To my regret, this solution was not working for my WP+BP stand, thus people say it works for them on WP 341. I found another solution in Codex, here’s the link http://codex.wordpress.org/Class_Reference/WP_Rewrite

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

You must be logged in to reply to this topic.