Forums

Author Base Rewrite (1 post)

  1. Tommie Hansen
    Member
    Posted 2 years ago #

    Good day,

    I know this snippet of code works well in ones functions.php;

    <?php
    global $wp_rewrite;
    $wp_rewrite->author_base = "members";
    $wp_rewrite->flush_rules();
    ?>

    But what if i want to have "members" as a more dynamic value?

    Let's say i want it to be $abs_members that is defined earlier and gets it's value from the db via a save in ones theme option?

    Simple chaning "members" to $abs_members or "$abs_members" does not work.

    So any suggestions? Any help would be appreciated. :)

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.