wordpress creating dynamic links
Posted
by
user1797635
on Stack Overflow
See other posts from Stack Overflow
or by user1797635
Published on 2012-11-14T04:56:36Z
Indexed on
2012/11/14
4:59 UTC
Read the original article
Hit count: 100
in my plugin i use Custom Post type "wallpapers" and i registered a taxonomy "cat" for categories.. and i created a new db table called wp_resolutions..
resolutions can be manage by admin.. i want to know creating dynamically links for wp_resolutions..
Example:
mydomain.com/wallpapers (this is my custom post type)
mydomain.com/wallpapers/cat (cat is my taxonomy)
mydomain.com/wallpapers/resolutions/full_hd (here my resolutions has to work like this) mydomain.com/wallpapers/resolutions/wide_16_9
wp_resolutions table structure
id, name, slug, width, height, aspect
1, Full HD, full_hd, 1920,1080, 1.78
2, Wide, wide_16_9, 1593, 1323, 1.6
Please refer me some guides...
© Stack Overflow or respective owner