How to register new things in Wordpress without using post type?

Asked

Viewed 26 times

0

Guys I’m studying the creation of themes in Wordpress and I found the use of post types very interesting... But there are certain situations that become unfeasible and get a face of gambiarra...

Have some other way to register new tables in mysql without using the main Wordpress tables?

Edit: I’m trying to register a gallery of images and emails.... But without using the wp_posts table... Ideally I would have a wp_gallery table and another wp_emails

  • Yes, but it depends on the way you want it, want to register what? values for post, categories? What?

  • I wanted to register a gallery of images and emails.... But without using the wp_posts table... Ideally I would have a wp_gallery table and another wp_emails

1 answer

0

Usually this type of registration is done in pages or posts, using as an example the image gallery that you cited, if it will appear on the home page of the site, you can create it in the page content editor, using custom fields, shortcodes or plugins. But if it is a very specific thing you can create tables in the bank, consult etc. using the wpdb

Browser other questions tagged

You are not signed in. Login or sign up in order to post.