Hi i need some advise as a newbie, I have a table of brands in database and page with all brands icon when i click in a brand icon i want to be redirected to a dynamic page that load content from database according to the brand icon i clicked

I want to know if is it possible to do it in WordPress and if it's better than static pages and if there is any plugins i can use?

Thank you in advance

  • Are the brands in the WordPress database? If so, are they a custom post type (posts, page, etc)? – Tom Oct 24 '17 at 14:41
  • yes in wp_brands table in WordPress database and they are not pages or posts. what i want it's like this page goodeed.com/brands – sihamxxi Oct 24 '17 at 14:45
  • Is the wp_brands table your own custom table? – Tom Oct 24 '17 at 14:47
  • yes it's my own table – sihamxxi Oct 24 '17 at 14:48

Since the wp_brands is your own custom table, I would recommend passing the brand the user clicks on via Query String:


You can access this via PHP in your page template(not the wp-admin editor) like this:


Once you have that you can use whichever brand the user chose to query the database. This isn't the "WordPress" way of doing things, but it will solve the issue.

|improve this answer|||||
  • is there any chance for doing it in the WordPress way ?because now the website is local but how the permanlink will work after the website will be online ? – sihamxxi Nov 3 '17 at 14:17

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.