Forums

category in link name (12 posts)

  1. Sushubh
    Member
    Posted 4 years ago #

    i want link structure like:

    http://domain.com/categoryname/postname/

    photomatt says i am missing something but there is no %category% in the permalink setting page. help please. :)

  2. Sushubh
    Member
    Posted 4 years ago #

    is this feature available in 1.5 nightlies?

  3. Kafkaesqui
    Moderator
    Posted 4 years ago #

    %category% is certainly a permalink variable in 1.5. I'm not sure how it would work with your permalink structure, though. I just tried it on the 1/23 nightly and get a 404 error on single page links.

  4. Sushubh
    Member
    Posted 4 years ago #

    hmm. thanks for the heads up. :) i will give a go to the latest nightly...

  5. Sushubh
    Member
    Posted 4 years ago #

    yeah, i gave the latest nightly a test and indeed:

    /%category%/%postname%/

    structure is not working... any ideas?

  6. macmanx
    Member
    Posted 4 years ago #

    Try adding a date structure. Using just /%postname%/ is highly discourage. In the unlikely event that you publish two posts with the same title (ex: "Happy New Year!"), you will effectively destroy your site. http://codex.wordpress.org/Using_Permalinks

  7. Sushubh
    Member
    Posted 4 years ago #

    well WP is being used for a non-blog functionality thats why i cannot use the date format. i will however now try adding post number... :)

  8. Sushubh
    Member
    Posted 4 years ago #

    /%category%/%post_id%/%postname%/

    gives me 404 error as well :(

  9. macmanx
    Member
    Posted 4 years ago #

    Perhaps your host cannot support mod_rewrite? As suggested in the link that I gave you, try:

    /index.php/%category%/%postname%/

  10. Sushubh
    Member
    Posted 4 years ago #

    i run around 20 blogs on the same server. :) all with mod-rewrite working fine. my only requirement with this particular installation is category name in the URI of a post. :)

    let me try the non-mod-rewrite version :)

  11. Sushubh
    Member
    Posted 4 years ago #

    tested... mod_rewrites are working fine. :) but as soon as category comes, it yells 404 or post not found :(

    just wnated to know if using:

    /%category%/%post_id%/%postname%/

    worked for you :)

  12. macmanx
    Member
    Posted 4 years ago #

    I don't use it, so I couldn't say. I use:

    /archives/%year%/%monthnum%/%day%/%postname%/

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.