• I need to generate page content from db using $wpdb, and everything looks clear except one question – what to do with permalinks?

    I don’t want to create empty page for every element generated from db and fill it up, but better to generate every page from database with proper permalink. So, my question – how to handle permalinks for such situation?

    Any advise is appreciated.

Viewing 4 replies - 1 through 4 (of 4 total)
  • I don’t understand what you are trying to do. Are you just trying to get the permalink for some of your pages? If so, use get_permalink().

    Thread Starter thetooon

    (@thetooon)

    Actually I think the most close solution for what I am looking for is here.

    But there are still open question – what action or filter should I use for my db functions?

    You are going to have to explain more clearly what you are trying to do.

    Thread Starter thetooon

    (@thetooon)

    I have a catalog like this. It is in Russian and it is still in development phase, so, do not blame, please.

    As you can see it is actually not catalog, but a huge single page with great Indizar plugin parsing.

    It is ok when number of items is reasonable, but when it grows up, it will become very inconvenient to edit those pages.

    So, what I thinking of is to create few tables, a simple interface in admin control panel where operate data, and parse URLs like, e.g., http://mysite.ru/catalogue/radio/portable/mp330 trough some functions, WP filters or actions, and take requested information from DB.

    I hope that this explanation is a bit better.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘wpdb *something* = generated permalink’ is closed to new replies.