Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • @profenter

    Participant

    ok,

    now I’ve got the following situation:
    `/animals => loop.php
    /animals?animal=ID => single.php`

    It works. I things is not the best way, but I didn’t found a better way.

    I just want to make

    `/animals => loop.php
    /animals/ID-NAME => single.php or /animals/ID => single.php`

    I’ve tried

    `add_rewrite_rule(
    ‘animals/([^/]+)-([0-9]{1-10})?$’,
    ‘index.php?animal=$matches[1]&animal_id=$matches[2]’,
    ‘top’
    );
    flush_rewrite_rules();`
    But this doesen’t work.

    I’ve search for hours but I didn’t found an answer. So how should I do this ?

    @profenter

    Participant

    H’mm sorry, I have some problems with the forum Software 🙁
    If I write an text with php inside it says:

    `ERROR: Your reply cannot be created at this time.`

    I added it into buddypress because I added a few subpages and other bp-stuff into the buddypress-member directory
    Does this answers your question?

    @profenter

    Participant

    I cant write an answer

Viewing 3 replies - 1 through 3 (of 3 total)
Skip to toolbar