Title: wpdb   *something* = generated permalink
Last modified: August 19, 2016

---

# wpdb *something* = generated permalink

 *  [thetooon](https://wordpress.org/support/users/thetooon/)
 * (@thetooon)
 * [16 years, 3 months ago](https://wordpress.org/support/topic/wpdb-something-generated-permalink/)
 * 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)

 *  [s_ha_dum](https://wordpress.org/support/users/apljdi/)
 * (@apljdi)
 * [16 years, 3 months ago](https://wordpress.org/support/topic/wpdb-something-generated-permalink/#post-1393158)
 * 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()](http://codex.wordpress.org/Template_Tags/get_permalink).
 *  Thread Starter [thetooon](https://wordpress.org/support/users/thetooon/)
 * (@thetooon)
 * [16 years, 3 months ago](https://wordpress.org/support/topic/wpdb-something-generated-permalink/#post-1393161)
 * Actually I think the most close solution for what I am looking for is [here](http://codex.wordpress.org/Custom_Queries#Permalinks_for_Custom_Archives).
 * But there are still open question – what action or filter should I use for my
   db functions?
 *  [s_ha_dum](https://wordpress.org/support/users/apljdi/)
 * (@apljdi)
 * [16 years, 3 months ago](https://wordpress.org/support/topic/wpdb-something-generated-permalink/#post-1393164)
 * You are going to have to explain more clearly what you are trying to do.
 *  Thread Starter [thetooon](https://wordpress.org/support/users/thetooon/)
 * (@thetooon)
 * [16 years, 3 months ago](https://wordpress.org/support/topic/wpdb-something-generated-permalink/#post-1393276)
 * I have a catalog like [this](http://www.skneman.ru/v2wp/catalogue/radio/portable/).
   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](http://www.sebaxtian.com/acerca-de/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](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.

## Tags

 * [custom queries](https://wordpress.org/support/topic-tag/custom-queries/)
 * [permalinks](https://wordpress.org/support/topic-tag/permalinks/)
 * [wpdb](https://wordpress.org/support/topic-tag/wpdb/)
 * [WP_Rewrite](https://wordpress.org/support/topic-tag/wp_rewrite/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 4 replies
 * 2 participants
 * Last reply from: [thetooon](https://wordpress.org/support/users/thetooon/)
 * Last activity: [16 years, 3 months ago](https://wordpress.org/support/topic/wpdb-something-generated-permalink/#post-1393276)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
