php - How to register a post type and taxonomy in WordPress and display in a page/single post -


i have question wordpress register post type:

how can register post type portfolio?

for example: in wordpress dashboard, can register post type , taxonomy. after want create page display portfolio , taxonomies (portfolio.php) , display single portfolio in (single-portfolio.php).

can explain me please?

you can use various methods :

  • create in theme archive-#postypename#.php (best one)

  • create page custom template name , put there code.

for single page can, write, create single-#postypename#.php in theme.

here's helpful link: how create custom post types archive page in wordpress


Comments

Popular posts from this blog

database - How many Observations in SAS Sample Data Output -

emulation - Android map show my location didn't work -